summaryrefslogtreecommitdiff
path: root/t/cxx-lt-demo.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2013-05-01 17:06:42 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2013-05-01 17:08:47 +0200
commit425fe1e87a78985c0d51ebb185793e57cdd433da (patch)
tree7d6402339e63f34f7f2312dad8896cfce7cb8de9 /t/cxx-lt-demo.sh
parentd432f067fb1569c4127b86c8d7e157e3687115f2 (diff)
downloadautomake-425fe1e87a78985c0d51ebb185793e57cdd433da.tar.gz
tests: avoid one tricky use of "make -e"
Which was causing a spurious failure on FreeBSD. Not particularly surprising, given how brittle "make -e" is in general ... * t/cxx-lt-demo.sh: Instead of forcing $(CC) to be 'false' by exporting "CC=false" in the environment and then passing the '-e' option to make, do so by passing "CC=false" on the make command line, both directly and using AM_MAKEFLAGS. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/cxx-lt-demo.sh')
-rwxr-xr-xt/cxx-lt-demo.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/cxx-lt-demo.sh b/t/cxx-lt-demo.sh
index 8afc974aa..b778725ba 100755
--- a/t/cxx-lt-demo.sh
+++ b/t/cxx-lt-demo.sh
@@ -122,7 +122,9 @@ std::string target (void)
END
./configure
-CC=false $MAKE -e
+# Creative quoting and redundant use of eval to avoid spurious
+# 'maintainer-check' failures.
+eval \$'MAKE CC=false AM_MAKEFLAGS=CC=false'
ls -l . src lib # For debugging.
$MAKE test-objs
VERBOSE=yes $MAKE check-TESTS