]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure due to small timeout
authorPádraig Brady <P@draigBrady.com>
Sat, 8 Nov 2025 10:14:38 +0000 (10:14 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 8 Nov 2025 10:14:38 +0000 (10:14 +0000)
* tests/tail/tail-c.sh: Tests that fail after a timeout
should use as least 10s to avoid intermittent failures
on slow/loaded hosts.

tests/tail/tail-c.sh

index 23519918bb9b6e4be174a7554f52157e9ce81a0b..9672b9fb62d93c816e5d043630daa6ea26596aba 100755 (executable)
@@ -43,7 +43,7 @@ compare exp out || fail=1
 # Any part of /dev/urandom, if it exists, should be valid for tail -c.
 if test -r /dev/urandom; then
   # Or at least it should not read it forever
-  timeout --verbose 1 tail -c 4096 /dev/urandom >/dev/null 2>err
+  timeout --verbose 10 tail -c 4096 /dev/urandom >/dev/null 2>err
   case $? in
       0) ;;
       # Solaris 11 allows negative seek but then gives EINVAL on read