spawn-pipe tests: Like the child program only against libc.
authorBruno Haible <bruno@clisp.org>
Mon, 6 Jun 2011 09:38:40 +0000 (11:38 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 6 Jun 2011 09:38:40 +0000 (11:38 +0200)
commit8a1f6249804a216743e8413158725145884d921b
treed1aa66e0571ef00215ca2c30b04b19b974bc6fe7
parent3f9fff25ea73b1a9b168d691d205d9fbb32f5d16
spawn-pipe tests: Like the child program only against libc.

* tests/test-spawn-pipe-child.c: New file, extracted from
tests/test-spawn-pipe.c.
(main): Expect only one argument.
(is_open): New function, copied from tests/test-pipe.c.
* tests/test-spawn-pipe.c: Don't include <errno.h>.
(child_main): Remove function.
(test_pipe): Pass only one argument to the child program.
(main): Remove child process code. Expect the child program's name as
first argument.
* tests/test-spawn-pipe.sh: Pass the child program's name as first
argument.
* modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
(Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
test-spawn-pipe-child against no libraries.
ChangeLog
modules/spawn-pipe-tests
tests/test-spawn-pipe-child.c [new file with mode: 0644]
tests/test-spawn-pipe.c
tests/test-spawn-pipe.sh