And the diagnosis for the failure of subdir5.test seems very similar. (In fact, it would have been much simpler to start by analyzing this failure, since it is a much simplified version of the aclocal6.test failure; but shame on me, I just proceded in alphabetical order w.r.t. the test names!) What about the following squash-in for the previous patch? It makes more senso to fix two such similar failures at once, rather than in two separate patches. The resulting updated patch is attached. Thanks, and sorry for the noise, Stefano -*-*- diff --git a/ChangeLog b/ChangeLog index bafedb1..9519688 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,11 @@ 2011-03-30 Stefano Lattarini - tests: fix timestamp-related spurious failure in aclocal6.test - Related to automake bug#8365. + tests: fix two timestamp-related spurious failures + Fixes automake bug#8365. * tests/aclocal6.test: Sleep before modifying m4 files that should trigger remake rules. This fixes an hard-to-hit timestamp-related race condition. + * tests/subdir5.test: Likewise. Report from Sam Steingold. 2011-03-21 Ralf Wildenhues diff --git a/tests/subdir5.test b/tests/subdir5.test index 5633ac6..c4473d3 100755 --- a/tests/subdir5.test +++ b/tests/subdir5.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2001, 2002, 2003, 2004, 2009, 2010 Free Software +# Copyright (C) 2001, 2002, 2003, 2004, 2009, 2010, 2011 Free Software # Foundation, Inc. # # This program is free software; you can redistribute it and/or modify @@ -67,6 +67,8 @@ $MAKE # does it in the other way: it updates confiles.m4 (which is m4_included # by configure.in there) after Makefile.am. +# Modified configure dependencies must be newer than config.status. +$sleep sed configure.tmp -e '/^AC_OUTPUT$/i\ AC_CONFIG_FILES([maude/Makefile])\ m4_include([confile.m4])\ @@ -94,6 +96,8 @@ test -f maude/Makefile # Then we add a new directory by modifying a file included (through # `m4_include') by configure.in. mkdir maude2 +# Modified configure dependencies must be newer than config.status. +$sleep cat >> confile.m4 << 'END' AC_CONFIG_FILES([maude2/Makefile]) AC_SUBST([GREPME])