From 0a2a3deb33f6c6423cd97100becaa46df9cef30a Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Thu, 18 Sep 2025 17:47:45 +0100 Subject: [PATCH] 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. --- tests/tail/wait.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3