mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: tac-2-nonseekable: ensure we don't block indefinitely
* tests/misc/tac-2-nonseekable.sh: Add a timeout to both protect and check whether we can close stdin correctly.
This commit is contained in:
1 parent
daa46dbe7d
commit
a376de95c3
1 file changed
+4
-1
@@ -36,7 +36,10 @@ for file in /proc/version /sys/kernel/profiling; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Assume timeout is due to failure to close stdin with <&-
|
||||
# which was seen on NetBSD 7.1 / x86_64
|
||||
returns_ 124 timeout 10 tac - - <&- 2>err && skip_ 'error closing stdin'
|
||||
# This failed due to heap corruption from v8.15-v8.25 inclusive.
|
||||
returns_ 1 tac - - <&- 2>err || fail=1
|
||||
returns_ 1 timeout 10 tac - - <&- 2>err || fail=1
|
||||
|
||||
Exit $fail
|
||||
Reference in new issue
Block a user