diff options
| author | Pádraig Brady <P@draigBrady.com> | 2025-09-18 19:04:57 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2025-09-18 19:04:57 +0100 |
| commit | 4ca51b101358f7dbd6b38564cfd6eee9937b2b2f (patch) | |
| tree | 4a5ecea62933060e8ea1624e8f5588e22ef566e9 /tests | |
| parent | build: fix compile error on macOS (diff) | |
| download | coreutils-4ca51b101358f7dbd6b38564cfd6eee9937b2b2f.tar.gz coreutils-4ca51b101358f7dbd6b38564cfd6eee9937b2b2f.zip | |
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
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/tail/overlay-headers.sh | 4 |
1 files 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 |
