tests: do not clobber the $CC set by AM_PROG_CC_C_O
authorPeter Rosin <peda@lysator.liu.se>
Tue, 6 Mar 2012 13:19:10 +0000 (14:19 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 6 Mar 2012 13:19:10 +0000 (14:19 +0100)
If $CC is originally a losing compiler, AM_PROG_CC_C_O will
modify $CC.  "$MAKE -e" will then clobber this modified $CC
and reintroduce the raw losing compiler causing the test
to fail, as subdir-objects is in effect.

* tests/yacc-dist-nobuild-subdir.test: Drop -e from the $MAKE
invocations.  This is safe since DISTCHECK_CONFIGURE_FLAGS is not
specified in the Makefile and since the YACC override is carried
over from the configure invocation into the Makefile making it
redundant to specifiy it again in the environment for $MAKE.

tests/yacc-dist-nobuild-subdir.test

index 67568d7..3fdae8d 100755 (executable)
@@ -85,9 +85,9 @@ chmod u+w .
 # Try to enable dependency tracking even with slow dependency
 # extractors, to improve coverage.
 ../configure --enable-dependency-tracking YACC=false
-YACC=false $MAKE -e
+$MAKE
 ls -l sub/*.[ch] && Exit 1
 
-env YACC=false DISTCHECK_CONFIGURE_FLAGS='YACC=false' $MAKE -e distcheck
+env DISTCHECK_CONFIGURE_FLAGS='YACC=false' $MAKE distcheck
 
 :