[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {branch-1.13.2} tests: avoid one tricky use of "make -e"

From: Stefano Lattarini
Subject: [FYI] {branch-1.13.2} tests: avoid one tricky use of "make -e"
Date: Wed, 1 May 2013 17:09:37 +0200

Which was causing a spurious failure on FreeBSD.  Not particularly
surprising, given how brittle "make -e" is in general ...

* t/ 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 <address@hidden>
 t/ | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/t/ b/t/
index 8afc974..b778725 100755
--- a/t/
+++ b/t/
@@ -122,7 +122,9 @@ std::string target (void)
-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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]