From: Thien-Thi Nguyen Date: Mon, 21 Jan 2013 12:35:03 +0000 (+0100) Subject: tests: avoid a spurious failure when running inside Emacs X-Git-Tag: v1.13.1b~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af633f5c7f110fa0ddc1f8163506c62c2549d526;p=thirdparty%2Fautomake.git tests: avoid a spurious failure when running inside Emacs Some versions of Emacs set the environment variable 'EMACS' to 't' for child processes. Thus, when running from inside Emacs, "$(MAKE) -e" erroneously allows the 't' to override the one in the Makefile. * t/lisp-flags.sh: Unset var 'EMACS', fixing the issue. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini --- diff --git a/t/lisp-flags.sh b/t/lisp-flags.sh index f55b18fa9..a31bcfdf0 100755 --- a/t/lisp-flags.sh +++ b/t/lisp-flags.sh @@ -18,6 +18,10 @@ . test-init.sh +# Don't get fooled when running as an Emacs subprocess. This is +# for the benefit of the "make -e" invocation below. +unset EMACS + cat > Makefile.am << 'EOF' lisp_LISP = foo.el AM_ELCFLAGS = __am_elcflags__