From 17c31a73f13ad320746e5b7e81a5883d7295d278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Thu, 30 Mar 2023 15:49:26 +0100 Subject: tests: tee: avoid false failure due to fifo usage * tests/misc/tee.sh: Call cleanup_ in all cases to ensure there are no overlapping interactions on the fifo that might impact later parts of the test. This was seen to cause issue with dash on musl libc. Addresses https://bugs.gnu.org/62542 --- tests/misc/tee.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/misc/tee.sh b/tests/misc/tee.sh index 0b97a9ea3..444cb688a 100755 --- a/tests/misc/tee.sh +++ b/tests/misc/tee.sh @@ -99,7 +99,7 @@ dd count=20 bs=100K if=/dev/zero status=none | dd count=0 oflag=nonblock status=none tee || { cleanup_; touch tee.fail; } } >fifo -test -f tee.fail && fail=1 +test -f tee.fail && fail=1 || cleanup_ # Ensure tee honors --output-error modes read_fifo() { timeout 10 dd count=1 if=fifo of=/dev/null status=none & } -- cgit v1.2.1