From 8992dfa54c1c5b6cde032be36c7626b301346226 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Fri, 22 Dec 2017 13:10:24 +0000 Subject: [PATCH] tests: avoid false failure on AIX 7.2 * tests/tail-2/pipe-f.sh: Close stdout in a subshell to ensure the current shell isn't impacted. Subsequent piped commands like `echo foo | blah` were seen to fail due to the previous closing of stdout. Reported by Assaf Gordon. --- tests/tail-2/pipe-f.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tail-2/pipe-f.sh b/tests/tail-2/pipe-f.sh index 759881c3fe..3dd85ec2e6 100755 --- a/tests/tail-2/pipe-f.sh +++ b/tests/tail-2/pipe-f.sh @@ -40,7 +40,7 @@ compare exp out || fail=1 timeout 10 tail -f $mode $fastpoll out | sleep .1 || fail=1 # This would wait indefinitely before v8.28 (until first write) -returns_ 1 timeout 10 tail -f $mode $fastpoll /dev/null >&- || fail=1 +(returns_ 1 timeout 10 tail -f $mode $fastpoll /dev/null >&-) || fail=1 done Exit $fail -- 2.47.2