]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fix false failure due to race
authorPádraig Brady <P@draigBrady.com>
Wed, 15 Apr 2026 12:14:18 +0000 (13:14 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Apr 2026 12:40:13 +0000 (13:40 +0100)
commit49febd6cbd50da822859342aabdec3527a89e8e5
tree5c751f1f4c53e84c3118ec8d9a09474768a51619
parentf6fda635bdc8ea7b6665fa25f7ccc78484a47679
tests: fix false failure due to race

* tests/misc/tty-eof.pl: Fix a race that commit v9.10-269-gf312af49a
made more apparent, and resulted in intermittent failure like:
"... (with input) didn't produce expected output".
Now Instead of waiting for overlapping echo and output,
just wait for EOF, and if received, use exp->before()
to inspect the accumulated output.
tests/misc/tty-eof.pl