Upstream report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62542 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 & }