From: Pádraig Brady
Date: Thu, 18 Sep 2025 16:47:45 +0000 (+0100) Subject: tests: tests/tail/wait.sh: protect against hang X-Git-Tag: v9.8~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a2a3deb33f6c6423cd97100becaa46df9cef30a;p=thirdparty%2Fcoreutils.git tests: tests/tail/wait.sh: protect against hang * tests/tail/wait.sh: This test was seen to hang occasionally on an Alpine Linux 3.20 system, so protect the tail(1) call with `timeout 60` as done in similar tests. Reported by Bruno Haible. --- diff --git a/tests/tail/wait.sh b/tests/tail/wait.sh index 7530ef40cc..87fe7540fc 100755 --- a/tests/tail/wait.sh +++ b/tests/tail/wait.sh @@ -67,7 +67,7 @@ if test "$HAVE_INOTIFY" && test -z "$mode" && is_local_dir_ .; then local delay="$1" > k && > tail.out && > tail.err || framework_failure_ - tail $fastpoll -F $mode k >tail.out 2>tail.err & pid=$! + timeout 60 tail $fastpoll -F $mode k >tail.out 2>tail.err & pid=$! sleep $delay mv k l sleep $delay