From: Pavel Roskin Date: Thu, 19 Sep 2002 19:04:09 +0000 (+0000) Subject: * tests/warnopts.test: Fix random failures by removing Autoconf X-Git-Tag: Release-1-6f~4 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=2c2c74bded5c4cda0baf48b7680adc07e0331334;p=automake.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 81fbfe16..4dc5b58f 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 68292575..f222280f 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 <