tests: fix spurious failure due to autom4te caching
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 2 May 2012 15:47:56 +0000 (17:47 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 2 May 2012 15:59:54 +0000 (17:59 +0200)
Reported by Peter Breitenlohner :
<http://lists.gnu.org/archive/html/automake-patches/2012-05/msg00045.html>

* t/suffix.sh: Remove stale autom4te.cache directories, to prevent racy,
spurious failures (using 'aclocal --force' was not enough, since the cache
was still picked up by the following automake call).

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/suffix.sh

index f9944cb..600aedf 100755 (executable)
@@ -32,6 +32,8 @@ END
 
 for use_arlib in false :; do
 
+  rm -rf autom4te*.cache
+
   if $use_arlib; then
     am_warns=
     echo AM_PROG_AR >> configure.ac
@@ -40,7 +42,7 @@ for use_arlib in false :; do
     am_warns=-Wno-extra-portability
   fi
 
-  $ACLOCAL --force
+  $ACLOCAL
 
   $AUTOMAKE $am_warns -i
   grep '^ *\.c' Makefile.in # For debugging.