summaryrefslogtreecommitdiff
path: root/tests/init.cfg
diff options
context:
space:
mode:
authorNorihiro Tanaka <noritnk@kcn.ne.jp>2010-03-28 17:56:22 +0200
committerJim Meyering <meyering@redhat.com>2010-03-28 20:59:44 +0200
commit46c97344bac16916352b198ac5fbe14c5cd2bf2c (patch)
treedd583d137e2eddaa4b1034d521d8956b1d8ffb64 /tests/init.cfg
parentdb9d6340b42a7774fae526f6a90eea3ce834e2d0 (diff)
downloadgrep-46c97344bac16916352b198ac5fbe14c5cd2bf2c.tar.gz
tests: add tests for the fgrep-infloop bug
* tests/init.cfg (require_timeout_): New function. * tests/fgrep-infloop: New file. Test for the above fix. * tests/Makefile.am (TESTS): Add it.
Diffstat (limited to 'tests/init.cfg')
-rw-r--r--tests/init.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index 0ec60f1c..6f957b30 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -32,3 +32,9 @@ do
done
test "$envvar_check_fail" = 1 && fail_ "failed to unset the above envvars"
+
+require_timeout_()
+{
+ ( timeout --version ) > /dev/null 2>&1 \
+ || skip_ your system lacks the timeout program
+}