1
0
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:
Collin Funk
2026-01-18 13:58:27 -08:00
parent 331c5f6857
commit aac817f34b

View File

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