>From f5f838a2eba1bb26a755762665095ae76fe59a9e Mon Sep 17 00:00:00 2001 Message-Id: From: Stefano Lattarini Date: Tue, 7 Feb 2012 19:53:49 +0100 Subject: [PATCH] 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. --- THANKS | 1 + tests/aclocal5.test | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/THANKS b/THANKS index e6730b4..b512b6b 100644 --- a/THANKS +++ b/THANKS @@ -194,6 +194,7 @@ Klaus Reichl address@hidden Krzysztof Żelechowski address@hidden L. Peter Deutsch address@hidden Ladislav Strojil address@hidden +Larry Daniel address@hidden Larry Jones address@hidden Lars Hecking address@hidden Lars J. Aas address@hidden diff --git a/tests/aclocal5.test b/tests/aclocal5.test index b206587..ec032e4 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 -- 1.7.7.3