summaryrefslogtreecommitdiff
path: root/t/parallel-tests-log-override-recheck.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-07-06 14:35:04 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-07-06 14:35:04 +0200
commit19d84bc34e9afa42aa41ae5c7815e49a8534927c (patch)
treef516986160dd5af7105514bedd2df30f6d91836d /t/parallel-tests-log-override-recheck.sh
parent14487be67a4d2e7cfcbda928c998e83a0bdbae96 (diff)
downloadautomake-19d84bc34e9afa42aa41ae5c7815e49a8534927c.tar.gz
tests: ignore minor 'recheck' regression for BSD make
It turns out that, with NetBSD 5.1 make and FreeBSD 9 make, running "make recheck" two times in a row quickly fails to correctly re-run the failed tests in the second run. That issue has been introduced likely introduced in commit 'v1.12.1-95-gd5443e4' of 20102-07-01, "parallel-tests: reimplement fix for bug#11791". Anyway, the use case that has been broken is not realistic (who is going to run "make recheck" two times in one second, without modifying any of the tests or the tested programs in the meantime?), so we believe the best fix is to simply work around the issue in the affected test cases, rather than risking to slow down or uglify the 'recheck' rule. * t/parallel-tests9.sh: Enhance a little. * t/tap-recheck.sh: Adjust adding proper '$sleep' calls were required. * t/parallel-tests-log-override-recheck.sh: Likewise. * t/test-driver-custom-multitest-recheck.sh: Likewise. * t/test-driver-custom-multitest-recheck2.sh: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/parallel-tests-log-override-recheck.sh')
-rwxr-xr-xt/parallel-tests-log-override-recheck.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/parallel-tests-log-override-recheck.sh b/t/parallel-tests-log-override-recheck.sh
index 493fbfea0..79c16fc65 100755
--- a/t/parallel-tests-log-override-recheck.sh
+++ b/t/parallel-tests-log-override-recheck.sh
@@ -77,6 +77,8 @@ for x in stdout my.log; do
$FGREP bazbaz $x
done
+using_gmake || $sleep # Required by BSD make.
+
chmod a-rw my.log
BAZ_EXIT_STATUS=0 TEST_SUITE_LOG=my2.log $MAKE -e recheck >stdout \
&& { cat stdout; exit 1; }