Files
coreutils/tests/timeout
Pádraig Brady b6b06854f3 tests: timeout: avoid false failure on some shells
dash in all modes, or bash when not invoked in posix mode
will issue a "Terminated" message and thus block with our filled pipe,
and not fire the trap.  I.e. with sh -> dash this test failed,
and sh -> bash this test passed (as bash is in POSIX mode in that case).
Interestingly this shows the shells have much the same problem
with stderr diagnostic side effects that timeout now avoids.

* tests/timeout/timeout.sh: Redirect the shell's stderr to /dev/null
so we don't care whether it outputs "Terminated" or not.  Also change
all "sh -c" to "$SHELL -c" for better consistency across all tests.
2026-10-29 14:51:21 +00:00
..