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.
This commit is contained in:
Pádraig Brady 2017-12-22 13:10:24 +00:00
parent f4fec33607
commit 8992dfa54c

View File

@ -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