tests: cmp: increase timeout to avoid failure on a very busy-IO system

* tests/cmp: Increase timeout from 0.1 to 0.4s, to avoid false-failure
on a system with lots of IO congestion. Reported by Nelson Beebe
in https://lists.gnu.org/r/diffutils-devel/2025-04/msg00007.html
This commit is contained in:
Jim Meyering 2025-04-08 13:44:18 -07:00
parent 7e53977313
commit 6c92d5fb8f

View File

@ -247,7 +247,7 @@ cmp -i 1000 -n $big j1 j2 || fail=1
rm -f a b
if timeout 0.1 true && truncate -s 14T a && truncate -s 15T b; then
returns_ 1 timeout 0.1 cmp a b >/dev/null || fail=1
returns_ 1 timeout 0.4 cmp a b >/dev/null || fail=1
fi
rm -f a b