From: Pádraig Brady
Date: Thu, 18 Sep 2025 18:04:57 +0000 (+0100) Subject: tests: tail/overlay-headers.sh: protect against hang X-Git-Tag: v9.8~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ca51b101358f7dbd6b38564cfd6eee9937b2b2f;p=thirdparty%2Fcoreutils.git 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 --- 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