]> Savannah Git Hosting - gnulib.git/commit
posix_spawn_file_actions_addfchdir: Avoid test failure under QEMU.
authorBruno Haible <bruno@clisp.org>
Sun, 29 Aug 2021 23:56:46 +0000 (01:56 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 29 Aug 2021 23:56:46 +0000 (01:56 +0200)
commitdec35a21ca3440cdaa4057557b2793b4b3aebf39
tree9c6f11cb757f7e52a7fb240c67cb6773b60acd99
parent1968e3a57ac44a8e782de06454a6b7df4e4a4c33
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.
ChangeLog
modules/posix_spawn_file_actions_addfchdir-tests
tests/test-posix_spawn-fchdir.c