bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tests: avoid a spurious timeout on a heavily-loaded system


From: Jim Meyering
Subject: tests: avoid a spurious timeout on a heavily-loaded system
Date: Fri, 13 Nov 2009 16:41:59 +0100

I needed both of these patches:
  - the first on a heavily loaded system to avoid a race condition
  - the second to avoid compilation failure on rawhide, presumably
      due to its newer header files.
pushing as soon as tests pass.

>From 4c9e7e01faf054811a65e28ff95f5f949ac0eac9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 13 Nov 2009 16:38:20 +0100
Subject: [PATCH 1/2] tests: avoid a spurious timeout on a heavily-loaded system

* tests/misc/timeout-parameters: This test would fail due to
the 1-second timeout expiring before a command of "." could
be exec'd and fail.  Increase to 10 seconds.
---
 tests/misc/timeout-parameters |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/misc/timeout-parameters b/tests/misc/timeout-parameters
index c8b1eff..f41c837 100755
--- a/tests/misc/timeout-parameters
+++ b/tests/misc/timeout-parameters
@@ -52,7 +52,7 @@ timeout --signal=invalid 1 sleep 0
 test $? = 125 || fail=1

 # invalid command
-timeout 1 .
+timeout 10 .
 test $? = 126 || fail=1

 # no such command
--
1.6.5.2.372.gc0502


>From 9a91b2a928914793fe48b6378dc30272e04fc001 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 13 Nov 2009 16:39:03 +0100
Subject: [PATCH 2/2] build: update gnulib to latest, for fixed test-getgroups.c

---
 gnulib |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gnulib b/gnulib
index 8c4c7e9..0173b1e 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 8c4c7e9f211d2d5ed1099ca21b049f6ed567e678
+Subproject commit 0173b1e598b66fc95f4cf3af023313e29701e384
--
1.6.5.2.372.gc0502




reply via email to

[Prev in Thread] Current Thread [Next in Thread]