In a QEMU user-mode environment (for various CPUs), the test-execute.sh and test-spawn-pipe.sh tests fail. This happens with qemu 6.1.0, but did not happen with qemu 4.1.0 and older versions. The reason is that when qemu is used to execute a program, the file descriptor 3 is open, referencing /dev/urandom. These two patches work around it. 2021-08-29 Bruno Haible spawn-pipe: Fix test failure when running under QEMU user-mode. * tests/test-spawn-pipe-child.c: Include , , qemu.h. (main): Under QEMU user-mode, allow fd 2 or fd 3 to be open. * modules/spawn-pipe-tests (Files): Add qemu.h. (Depends-on): Add stdbool. 2021-08-29 Bruno Haible execute: Fix test failure when running under QEMU user-mode. * tests/test-execute-child.c: Include , qemu.h. (main): Under QEMU user-mode, allow fd 3 to be open. * modules/execute-tests (Files): Add qemu.h. (Depends-on): Add stdbool.