From 6c92d5fb8f1ed866a8bbc8e7be83c05645eca7d9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Apr 2025 13:44:18 -0700 Subject: [PATCH] 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 --- tests/cmp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cmp b/tests/cmp index 0c7fa15..b8e4864 100755 --- a/tests/cmp +++ b/tests/cmp @@ -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