]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix a timestamp-related spurious failures
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 7 Feb 2012 18:53:49 +0000 (19:53 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 7 Feb 2012 18:53:49 +0000 (19:53 +0100)
Fixes automake bug#10737.  Report from Larry Daniel.
See also automake bug#8365 and commit 'v1.11-329-gd4df619' of
30-03-2011, "tests: fix timestamp-related failures".

* tests/aclocal5.test: Sleep before modifying m4 files that should
trigger remake rules.  This fixes an hard-to-hit timestamp-related
race condition.
* THANKS: Update.

THANKS
tests/aclocal5.test

diff --git a/THANKS b/THANKS
index e6730b4a9264c836d845b8c3366d94c853c52863..b512b6b70902a044c050a810d8d6bf07593de602 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -194,6 +194,7 @@ Klaus Reichl                Klaus.Reichl@alcatel.at
 Krzysztof Żelechowski giecrilj@stegny.2a.pl
 L. Peter Deutsch       ghost@aladdin.com
 Ladislav Strojil       Ladislav.Strojil@seznam.cz
+Larry Daniel           larry@larrybrucedaniel.com
 Larry Jones            larry.jones@sdrc.com
 Lars Hecking           lhecking@nmrc.ucc.ie
 Lars J. Aas            larsa@sim.no
index b206587aaf29a571d6256fbddc47b2284fda887a..ec032e42069500bf0c0a1e8b70acd41b173ada35 100755 (executable)
@@ -51,6 +51,7 @@ $MAKE
 # updated, even from a sub-directory.  Check that AU_ALIAS is
 # recognized. Change the definition of AM_TEST to check that its new
 # definition is used.
+$sleep # Modified configure dependencies must be newer than config.status.
 echo 'AU_ALIAS([AM_TEST], [AC_SUBST])' > m4/moredefs.m4
 cd sub
 $MAKE
@@ -64,6 +65,7 @@ test -f $me-1.0/m4/moredefs.m4
 
 # Change the definition of AM_TEST to check that its new definition is
 # used.  Check that AC_DEFUN_ONCE is caught.
+$sleep # Modified configure dependencies must be newer than config.status.
 echo 'AC_DEFUN_ONCE([AM_TEST], [AC_SUBST(__$1__)])' > m4/moredefs.m4
 $MAKE
 grep 'm4/moredefs\.m4' aclocal.m4