summaryrefslogtreecommitdiff
path: root/modules/posix_spawn_file_actions_addfchdir-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-08-30 01:56:46 +0200
committerBruno Haible <bruno@clisp.org>2021-08-30 01:56:46 +0200
commitdec35a21ca3440cdaa4057557b2793b4b3aebf39 (patch)
tree9c6f11cb757f7e52a7fb240c67cb6773b60acd99 /modules/posix_spawn_file_actions_addfchdir-tests
parent1968e3a57ac44a8e782de06454a6b7df4e4a4c33 (diff)
downloadgnulib-dec35a21ca3440cdaa4057557b2793b4b3aebf39.tar.gz
posix_spawn_file_actions_addfchdir: Avoid test failure under QEMU.
* 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.
Diffstat (limited to 'modules/posix_spawn_file_actions_addfchdir-tests')
-rw-r--r--modules/posix_spawn_file_actions_addfchdir-tests2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/posix_spawn_file_actions_addfchdir-tests b/modules/posix_spawn_file_actions_addfchdir-tests
index 789a85d2e8..903a30f859 100644
--- a/modules/posix_spawn_file_actions_addfchdir-tests
+++ b/modules/posix_spawn_file_actions_addfchdir-tests
@@ -2,12 +2,14 @@ Files:
tests/test-posix_spawn_file_actions_addfchdir.c
tests/test-posix_spawn-fchdir.c
tests/signature.h
+tests/qemu.h
tests/macros.h
Depends-on:
posix_spawn_file_actions_init
posix_spawn_file_actions_destroy
posix_spawnp-tests
+stdbool
findprog
configure.ac: