tests: make tests requiring a delay to pass, more robust
commit09fcf494a10c4b1ad2b037d093f571e7462e08c4
authorPádraig Brady <P@draigBrady.com>
Mon, 5 Jul 2010 07:53:10 +0000 (5 08:53 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 5 Jul 2010 14:06:07 +0000 (5 15:06 +0100)
treeb37ab28311bb36e20c3f18f09531196dd70381b1
parent1d95457b3ecc57df4cd67175abd093b84e29372b
tests: make tests requiring a delay to pass, more robust

* tests/init.cfg: Introduce a retry_delay_() function to
repeatedly call a test function that requires a delay.
This delay can now be shorter for the common case on fast
systems, but will double until a configurable limit it reached
before failing on slower systems.
* tests/dd/reblock: Use retry_delay_.
* tests/misc/cat-buf: Likewise.
* tests/misc/stdbuf: Likewise.
* tests/tail-2/F-vs-rename: Likewise.
* tests/tail-2/flush-initial: Likewise.
* tests/tail-2/tail-n0f: Likewise.
* tests/tail-2/wait: Likewise.
* test/dd/misc: Comment that delay is needed to trigger failure.
tests/dd/misc
tests/dd/reblock
tests/init.cfg
tests/misc/cat-buf
tests/misc/stdbuf
tests/tail-2/F-vs-rename
tests/tail-2/flush-initial
tests/tail-2/tail-n0f
tests/tail-2/wait