On 18/09/2025 15:49, Bruno Haible wrote:
On Alpine Linux 3.20, the test
tests/tail/wait.sh
hangs.
A left-over is a directory 'gt-wait.sh.pC6O' in the coreutils build directory,
containing three empty files:
unreadable
tail.err
here
Only seen once. When I reboot and retry "make check", all tests pass.
I can't see a race that might cause a hang,
but we do protect similar tail(1) invocations with `timeout 60`,
so the attached does that here too.
cheers,
Padraig
From 0a2a3deb33f6c6423cd97100becaa46df9cef30a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <[email protected]>
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 7530ef40c..87fe7540f 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.50.1