From ab7ef8b51596c50b45f7c52f19b75927d4cede16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Wed, 3 Jun 2026 22:14:04 +0100 Subject: [PATCH] tests: shred: fix intermittent false failure * tests/shred/fifo.sh: Fix (unreleased) racy test. --- tests/shred/fifo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/shred/fifo.sh b/tests/shred/fifo.sh index c7c3ac235..4e7a1c487 100755 --- a/tests/shred/fifo.sh +++ b/tests/shred/fifo.sh @@ -62,10 +62,10 @@ cleanup_() { kill $pid 2>/dev/null && wait $pid; } # Test 'shred' on a FIFO with a reader. After the file descriptor is # opened, 'cat' will be unblocked. -timeout 10 cat pipe > /dev/null & pid=$! +timeout 10 cat fifo > /dev/null & pid=$! returns_ 1 timeout 10 shred fifo >out 2>err || fail=1 compare /dev/null out || fail=1 compare exp err || fail=1 -kill -0 $pid && fail=1 +wait $pid || fail=1 # on cat timeout Exit $fail