From: Pádraig Brady Date: Mon, 2 Feb 2026 11:54:02 +0000 (+0000) Subject: tests: avoid false failure sync'ing busy systems X-Git-Tag: v9.10~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41188ee3b8c24f335318852bff861a814404e54d;p=thirdparty%2Fcoreutils.git tests: avoid false failure sync'ing busy systems * tests/misc/sync.sh: Increase the timeout to 60s, and restrict the case to when RUN_VERY_EXPENSIVE_TESTS=yes. --- diff --git a/tests/misc/sync.sh b/tests/misc/sync.sh index fa2ca86fa6..f782a2b9a1 100755 --- a/tests/misc/sync.sh +++ b/tests/misc/sync.sh @@ -61,8 +61,12 @@ if test "$fail" != '1'; then # Ensure a fifo doesn't block mkfifo_or_skip_ fifo for opt in '' '-f' '-d'; do - test "$opt" = '-f' && test "$RUN_EXPENSIVE_TESTS" != yes && continue - returns_ 124 timeout 10 sync $opt fifo && fail=1 + timeout=10 + if test "$opt" = '-f'; then + test "$RUN_VERY_EXPENSIVE_TESTS" = yes || continue + timeout=60 + fi + returns_ 124 timeout "$timeout" sync $opt fifo && fail=1 done fi