On 18/09/2025 18:50, Bruno Haible wrote:
On T2SDE Linux/alpha, I see the test tests/tail/overlay-headers.sh hangs.
It is executing the command:
tail ---dis -s,1 --max-unchanged-stats=1 --pid=32217 -f file1 file2

Here is the relevant part of test-suite.log.

That test looks more problematic than the last similar issue,
so I've protected the call with the attached.

For after the release I need to audit all these tail invocations:

git grep 'tail [^|]*-[fF]' tests | grep -Ev '(:#|timeout)'

cheers,
Padraig
From 4ca51b101358f7dbd6b38564cfd6eee9937b2b2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <[email protected]>
Date: Thu, 18 Sep 2025 19:04:57 +0100
Subject: [PATCH] tests: tail/overlay-headers.sh: protect against hang

* tests/tail/overlay-headers.sh: Protect tail invocation with timeout,
and extend the possible running period to 60 seconds like other tests.
Reported by Brudno Haible on T2SDE Linux/alpha
---
 tests/tail/overlay-headers.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/tail/overlay-headers.sh b/tests/tail/overlay-headers.sh
index 448251b22..7b61cbcf8 100755
--- a/tests/tail/overlay-headers.sh
+++ b/tests/tail/overlay-headers.sh
@@ -50,9 +50,9 @@ echo start > file1 || framework_failure_
 echo start > file2 || framework_failure_
 
 # Use this as a way to gracefully terminate tail
-env sleep 20 & sleep=$!
+env sleep 60 & sleep=$!
 
-tail $fastpoll --pid=$sleep -f file1 file2 > out & pid=$!
+timeout 60 tail $fastpoll --pid=$sleep -f file1 file2 > out & pid=$!
 
 kill -0 $pid || fail=1
 
-- 
2.50.1

Reply via email to