From: Stefano Lattarini Date: Tue, 7 Feb 2012 18:53:49 +0000 (+0100) Subject: tests: fix a timestamp-related spurious failures X-Git-Tag: ng-0.5a~11^2~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5f838a2eba1bb26a755762665095ae76fe59a9e;p=thirdparty%2Fautomake.git tests: fix a timestamp-related spurious failures 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. --- diff --git a/THANKS b/THANKS index e6730b4a9..b512b6b70 100644 --- 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 diff --git a/tests/aclocal5.test b/tests/aclocal5.test index b206587aa..ec032e420 100755 --- a/tests/aclocal5.test +++ b/tests/aclocal5.test @@ -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