tests: fix spurious failure due to I/O buffering
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 Jan 2012 20:45:52 +0000 (21:45 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 2 Jan 2012 21:12:06 +0000 (22:12 +0100)
commitb190798a1585327e4aa59ddf9af22f160b987c74
tree19076d8686964af05c449d84bec69cd662f40e3b
parent34b2d5646829ac93ccc78acaaacbd7a4558dea3c
tests: fix spurious failure due to I/O buffering

* tests/parallel-tests-interrupt.tap: Ensure the dummy test script
`foo.test' flushes its standard output before starting to grep the
log file where such output is being redirected by the parallel test
harness.  Since we are at it, improve this same dummy script to
better catch unexpected behaviours and results.

Reported by Jim Meyering in automake bug#10418.
tests/parallel-tests-interrupt.tap