tests: simplify and fix a race in 2 tail --follow tests
authorPádraig Brady <P@draigBrady.com>
Wed, 2 Sep 2009 23:39:17 +0000 (00:39 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 3 Sep 2009 09:08:06 +0000 (10:08 +0100)
commit84b5844d21e6958c94096f14cf75e90930e88feb
tree9b798f18a44e5adc821718cfa179de6dd26ece22
parent1a94ac4a0524a760c1c3ea7a5ca9032e994785c2
tests: simplify and fix a race in 2 tail --follow tests

* tests/tail-2/pid: Use the timeout command to determine process
longevity, rather than querying /proc/$pid/status.
The latter was racy in any case when inotify is used, as then
tail wakes up periodically even for unchanging files therefore
causing the check for "S (sleeping)" state to fail intermittently.
* tests/tail-2/wait: Likewise.
tests/tail-2/pid
tests/tail-2/wait