From b09e032796e842eee466fae52145b5d32f0bb847 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 19 Sep 2002 19:04:16 +0000 Subject: [PATCH] * tests/warnopts.test: Fix random failures by removing Autoconf cache directory whan configure.in changes. Use the code and the comment from tests/asm.test. --- ChangeLog | 6 ++++++ tests/warnopts.test | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 81fbfe16d..4dc5b58fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-09-19 Pavel Roskin + + * tests/warnopts.test: Fix random failures by removing Autoconf + cache directory whan configure.in changes. Use the code and the + comment from tests/asm.test. + 2002-09-19 Alexandre Duret-Lutz * automake.texi (Program and Library Variables) : diff --git a/tests/warnopts.test b/tests/warnopts.test index 682925750..f222280f6 100755 --- a/tests/warnopts.test +++ b/tests/warnopts.test @@ -61,6 +61,14 @@ grep '^Makefile.am:.*INCLUDES' stderr && exit 1 # Only two lines of warnings. test `wc -l < stderr` = 2 +# On fast machines the autom4te.cache created during the above run of +# $AUTOMAKE is likely to have the same time stamp as the configure.in +# created below; thus causing traces for the old configure.in to be +# used. We could do `sleep 2', but it's faster to erase the +# directory. (Erase autom4te*.cache, not autom4te.cache, because some +# bogus installations of Autoconf use a versioned cache.) +rm -rf autom4te*.cache + # If we add a global -Wnone, all warnings should disappear. cat >configure.in <