]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: avoid spurious failure of deleted-am.test with FreeBSD make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 Jan 2012 20:03:45 +0000 (21:03 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 28 Jan 2012 07:06:40 +0000 (08:06 +0100)
* tests/deleted-am.test: Sleep between the removal of the included
'.am' fragments and the subsequent "make" calls, to ensure that the
remake rules kick in.  This is required to avoid racy spurious
failures (~ 60% of the time) with FreeBSD make.

tests/deleted-am.test

index fa41e9e1060e707f5054777b455c0ef1e39e2cc5..1e8d11a606e3bd881b6528dbc2b5ce5758b753ed 100755 (executable)
@@ -37,6 +37,7 @@ $AUTOMAKE
 $MAKE
 
 rm -f zardoz.am
+$sleep # Required to avoid racy failures with FreeBSD make.
 $MAKE >output 2>&1 && { cat output; Exit 1; }
 cat output
 # This error will come from automake, not make, so we can be stricter
@@ -44,12 +45,13 @@ cat output
 grep 'cannot open.*zardoz\.am' output
 grep 'foobar\.am' output && Exit 1 # No spurious error, please.
 
-# Try  with one less indirection.
+# Try with one less indirection.
 : > foobar.am
 $AUTOMAKE Makefile
 ./config.status Makefile
 $MAKE # Sanity check.
 rm -f foobar.am
+$sleep # Required to avoid racy failures with FreeBSD make.
 $MAKE >output 2>&1 && { cat output; Exit 1; }
 cat output
 # This error will come from automake, not make, so we can be stricter