diff options
author | Norihiro Tanaka <noritnk@kcn.ne.jp> | 2010-03-28 17:56:22 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-03-28 20:59:44 +0200 |
commit | 46c97344bac16916352b198ac5fbe14c5cd2bf2c (patch) | |
tree | dd583d137e2eddaa4b1034d521d8956b1d8ffb64 /tests/init.cfg | |
parent | db9d6340b42a7774fae526f6a90eea3ce834e2d0 (diff) | |
download | grep-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.cfg | 6 |
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 +} |