mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-11 01:42:17 +02:00
tests: sync: also test that -d and -f don't block on a FIFO
* tests/misc/sync.sh: Check 'sync fifo' with no arguments, -d, and -f separately. Only perform the check for -f if RUN_EXPENSIVE_TESTS=yes since it may be expensive.
This commit is contained in:
@@ -52,7 +52,10 @@ fi
|
||||
if test "$fail" != '1'; then
|
||||
# Ensure a fifo doesn't block
|
||||
mkfifo_or_skip_ fifo
|
||||
returns_ 124 timeout 10 sync fifo && fail=1
|
||||
for opt in '' '-f' '-d'; do
|
||||
test "$opt" = '-f' && test "$RUN_EXPENSIVE_TESTS" != yes && continue
|
||||
returns_ 124 timeout 10 sync $opt fifo && fail=1
|
||||
done
|
||||
fi
|
||||
|
||||
Exit $fail
|
||||
|
||||
Reference in New Issue
Block a user