]> Savannah Git Hosting - gnulib.git/commit
posix_spawn* tests: Add support for native Windows.
authorBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2020 21:14:38 +0000 (22:14 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2020 21:17:30 +0000 (22:17 +0100)
commit8cf7746a2b5c5fe50e8369951619a87ecb3786bd
treedfa579efe442004b0398067464f4dbae287962d7
parentc9ed8d9a58bae5a90fc1410232354cf8e27e2e3c
posix_spawn* tests: Add support for native Windows.

* tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
like Cygwin.
* tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
SIGHUP and SIGPIPE. On native Windows, don't call
posix_spawnattr_setsigmask.
* tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
* tests/test-posix_spawn-fchdir.c (main): Likewise.
* tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
output from Cygwin's 'pwd' program.
* tests/test-posix_spawn-script.c (main): On native Windows, skip the
executable-shell-script part of the test.
* tests/test-posix_spawnp-script.c (main): Likewise.
* modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
(configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
(Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
* modules/posix_spawnp-tests (Depends-on): Add  waitpid.
(configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
(Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
* modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
test the POSIX_SPAWN_PORTED conditional.
* modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
Define the POSIX_SPAWN_PORTED conditional here.
12 files changed:
ChangeLog
modules/posix_spawn-tests
modules/posix_spawn_file_actions_addchdir-tests
modules/posix_spawn_file_actions_addfchdir-tests
modules/posix_spawnp-tests
tests/test-posix_spawn-chdir.c
tests/test-posix_spawn-dup2-stdin.c
tests/test-posix_spawn-dup2-stdout.c
tests/test-posix_spawn-fchdir.c
tests/test-posix_spawn-open1.c
tests/test-posix_spawn-script.c
tests/test-posix_spawnp-script.c