From 4ca51b101358f7dbd6b38564cfd6eee9937b2b2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
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 448251b225..7b61cbcf86 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.47.3