Simon Ruderich
06f483dbee
Fix a few strict compiler warnings.
2013-06-07 02:01:23 +02:00
Simon Ruderich
c2097785e7
Use static list of descriptors to reduce mallocs.
...
Only if file descriptors with a value > 255 occur, the list
implementation is used.
2013-06-07 01:27:58 +02:00
Simon Ruderich
5c8b5233fb
tests: Run tests under valgrind if it's available.
2013-06-07 01:17:42 +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
374b11a314
tests: Also run tests in subshell with LD_PRELOAD set.
2013-06-05 01:06:10 +02:00
Simon Ruderich
7108005fff
tests: Use <STDERR< and >STDERR> as markers.
...
Increases contrast to "stderr" output string.
2013-06-02 23:41:31 +02:00
Simon Ruderich
e091b977de
tests: Use bash to get consistent test results.
2013-06-02 23:39:14 +02:00
Simon Ruderich
1c5441c26a
Hook vfork() and replace it with fork().
2013-06-02 18:25:49 +02:00
Simon Ruderich
ad50ad9c54
Hook perror(3).
2013-06-01 22:08:45 +02:00
Simon Ruderich
fb9548453f
Add simple test suite.
2013-06-01 21:51:28 +02:00