tests: fix spurious failure in aclocal7.sh on fast machines
authorAdam Sampson <ats@offog.org>
Tue, 10 Jul 2012 13:08:15 +0000 (15:08 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 10 Jul 2012 13:08:36 +0000 (15:08 +0200)
Fixes automake bug#11896.  Issue introduced in commit v1.12.1-46-g13dd512.

* t/aclocal7.sh: Since aclocal rewrites aclocal.m4 unless the input files
are all older than the existing aclocal.m4, so we must sleep to ensure
somedefs.m4 has an older timestamp than the aclocal.m4 the next aclocal
call will generate.

Copyright-paperwork-exempt: yes
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/aclocal7.sh

index 4c03a0c..c050b07 100755 (executable)
@@ -45,6 +45,11 @@ AUTOMAKE_after_aclocal ()
   $AUTOMAKE --no-force
 }
 
+# aclocal will rewrite aclocal.m4 unless the input files are all older than the
+# existing aclocal.m4 -- sleep to ensure somedefs.m4 has an older timestamp
+# than the aclocal.m4 that the next aclocal call will generate.
+$sleep
+
 $ACLOCAL -I m4
 AUTOMAKE_after_aclocal