From e36f246a790e1856cf6cb5a0aae37296c30d66a9 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Tue, 28 Feb 2012 20:07:34 +0100 Subject: [PATCH] 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. --- tests/yacc-dist-nobuild.test | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 -- 2.47.3