summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-11-12 10:15:03 +0100
committerJim Meyering <meyering@redhat.com>2011-11-12 10:15:03 +0100
commitda146191fe5ae006c7d02fc7feb0870c59917c2f (patch)
tree5b5ec553d7207e263987fe073ae002073b09024a
parent171c09d9ea74dc1ba1699ec6f13c75fc3bc81d64 (diff)
downloadgrep-da146191fe5ae006c7d02fc7feb0870c59917c2f.tar.gz
tests: avoid unwarranted failures due to SATAN's timeout
* tests/init.cfg (require_timeout_): Also ensure that timeout exits with its child's exit status.
-rw-r--r--tests/init.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index 27b68df4..e04d90f2 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -41,6 +41,8 @@ require_timeout_()
{
( timeout 10s true ) > /dev/null 2>&1 \
|| skip_ your system lacks the timeout program
+ timeout 10s false; test $? = 1 \
+ || skip_ your system has a non-GNU timeout program
}
require_pcre_()