tests: fail rather than infloop in tail's inotify-rotate test
authorJim Meyering <meyering@redhat.com>
Wed, 30 Jun 2010 15:10:07 +0000 (17:10 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 30 Jun 2010 16:12:12 +0000 (18:12 +0200)
commit7336920dd07478b7bdae05ec599da4e2e66a94ff
tree12091115128e17a39c3507f7c495169ae0eb9e58
parentb062bbd94712c9a761ee42b9ac267651b334f836
tests: fail rather than infloop in tail's inotify-rotate test

* tests/tail-2/inotify-rotate: Switch to new init.sh-based framework.
(grep_timeout): New function.
Use it in place of open-coded loops that might infloop.
This was prompted by my encountering an inexplicable, and so far
unreproducible, infloop in the code that was waiting for "b" to
appear in "out".
tests/tail-2/inotify-rotate