From: Pádraig Brady Date: Fri, 22 Dec 2017 13:10:24 +0000 (+0000) Subject: tests: avoid false failure on AIX 7.2 X-Git-Tag: v8.29~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8992dfa54c1c5b6cde032be36c7626b301346226;p=thirdparty%2Fcoreutils.git 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. --- 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