mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-11 10:53:42 +08:00
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:
parent
f4fec33607
commit
8992dfa54c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user