summaryrefslogtreecommitdiff
path: root/modules/posix_spawn_file_actions_addfchdir-tests
Commit message (Collapse)AuthorAgeFilesLines
* posix_spawn_file_actions_addfchdir: Avoid test failure under QEMU.Bruno Haible2021-08-301-0/+2
| | | | | | | | | | | * tests/test-posix_spawn-fchdir.c: Include qemu.h. (is_qemu): New variable. (test): Under QEMU user-mode, don't expect that "pwd" produces the result "/". (main): Initialize is_qemu. Under QEMU user-mode, skip the relative file name test. * modules/posix_spawn_file_actions_addfchdir-tests (Files): Add qemu.h. (Depends-on): Add stdbool.
* Fix build error when libintl is installed.Bruno Haible2021-05-091-0/+1
| | | | | | | * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Link test-posix_spawn-chdir with libintl. * modules/posix_spawn_file_actions_addfchdir-tests (Makefile.am): Link test-posix_spawn-fchdir with libintl.
* posix_spawn_file_actions_* tests: Fix module dependencies.Bruno Haible2021-01-251-0/+1
| | | | | | | | | | | * modules/posix_spawn_file_actions_addclose-tests (Depends-on): Add posix_spawn_file_actions_destroy. * modules/posix_spawn_file_actions_addopen-tests (Depends-on): Likewise. * modules/posix_spawn_file_actions_adddup2-tests (Depends-on): Likewise. * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Likewise. * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Likewise.
* posix_spawn* tests: Add support for native Windows.Bruno Haible2020-12-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* posix_spawn_file_actions_addfchdir-tests: Rename test.Bruno Haible2020-12-171-3/+3
| | | | | | | * tests/test-posix_spawn-fchdir.c: Renamed from tests/test-posix_spawn5.c. * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am): Update.
* posix_spawn_file_actions_addfchdir tests: Enhance test.Bruno Haible2020-04-281-0/+1
| | | | | | | | | * tests/test-posix_spawn5.c: Include findprog.h. (test): New function, extracted from main. (main): Invoke it. Also, invoke it with a program name such as "bin/pwd". * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add findprog.
* posix_spawn_file_actions_addfchdir: Add tests.Bruno Haible2019-06-101-0/+20
* tests/test-posix_spawn_file_actions_addfchdir.c: New file. * tests/test-posix_spawn5.c: New file. * modules/posix_spawn_file_actions_addfchdir-tests: New file.