Commit Graph

16 Commits

Author SHA1 Message Date
Simon Ruderich
a685b825aa tests: Add example_stdio.c and test_stdio.sh. 2013-06-22 18:21:10 +02:00
Simon Ruderich
e3234d6c08 tests/Makefile.am: Fix for BSD's make. 2013-06-22 00:43:48 +02:00
Simon Ruderich
d78910e363 tests/Makefile.am: Remove unnecessary *_SOURCES variables.
They are only required if more than one source file (or one with a
different name) is used.
2013-06-20 22:02:30 +02:00
Simon Ruderich
1fb32dbd84 tests: Remove test_symbols.sh.
It's useless as different systems provide/require different symbols.
Will be replaced by a better test.
2013-06-20 20:46:06 +02:00
Simon Ruderich
941370dda9 Hook BSD err(), errx(), warn(), warnx(), etc. functions.
err(), errx(), warn(), warnx(), verr(), verrx(), vwarn(), vwarnx() are
hooked.
2013-06-15 02:39:52 +02:00
Simon Ruderich
6ae629bef0 tests/Makefile.am: Enable parallel and colored test runs.
Necessary for automake < 1.13.
2013-06-14 21:24:53 +02:00
Simon Ruderich
59375c2b79 Fix possible memory overwrite in init_from_environment().
It was possible for a user to overwrite memory at a relative location
with 1 by passing a negative file descriptor.
2013-06-13 22:08:08 +02:00
Simon Ruderich
d8be625da9 tests/test_symbols.sh: Add. 2013-06-13 02:32:27 +02:00
Simon Ruderich
5e8be10581 tests/Makefile.am: Sort dist_check_DATA. 2013-06-13 02:29:55 +02:00
Simon Ruderich
04ac66863a tests: Split run.sh in multiple test files.
Allows parallel test runs and simplifies optional tests.
2013-06-13 01:26:25 +02:00
Simon Ruderich
05aefe25ba tests: Rename example-* to example_* for consistency. 2013-06-13 01:05:06 +02:00
Simon Ruderich
2f1aa1cdd3 Only run vfork() tests if it's available. 2013-06-10 15:16:21 +02:00
Simon Ruderich
7f9856c5da Hook error() and error_at_line() if available.
They are used by some GNU programs to display error messages.
2013-06-05 23:57:05 +02:00
Simon Ruderich
7ea72c40db Hook execve() and the other exec*() functions.
Prevents programs from removing our environment variables during the
exec.

Also reduces unnecessary calls to update_environment() by calling it
only once before the exec.
2013-06-05 01:40:56 +02:00
Simon Ruderich
1c5441c26a Hook vfork() and replace it with fork(). 2013-06-02 18:25:49 +02:00
Simon Ruderich
fb9548453f Add simple test suite. 2013-06-01 21:51:28 +02:00