From: Stefano Lattarini Date: Tue, 28 Feb 2012 19:07:34 +0000 (+0100) Subject: tests: fix spurious failure when dependency tracking is unavailable X-Git-Tag: v1.11b~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e36f246a790e1856cf6cb5a0aae37296c30d66a9;p=thirdparty%2Fautomake.git tests: fix spurious failure when dependency tracking is unavailable Report by Dave Goodell. See automake bug#8880. * tests/yacc-dist-nobuild.test: Run the sanity check that aims at ensuring we really cover the expected code paths in a new build directory, to avoid spurious failures when automatic dependency tracking is disabled. --- diff --git a/tests/yacc-dist-nobuild.test b/tests/yacc-dist-nobuild.test index bdfaca6e1..6f02f1109 100755 --- a/tests/yacc-dist-nobuild.test +++ b/tests/yacc-dist-nobuild.test @@ -76,9 +76,13 @@ cd build $MAKE # Sanity check. -chmod u+w ../$distdir -rm -f ../$distdir/parse.c -chmod a-w ../$distdir +cd .. +chmod u+w $distdir +rm -f $distdir/parse.c +chmod a-w $distdir +mkdir build2 +cd build2 +../$distdir/configure $MAKE >out 2>&1 && { cat out; Exit 1; } cat out $FGREP parse.c out