From af633f5c7f110fa0ddc1f8163506c62c2549d526 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Mon, 21 Jan 2013 13:35:03 +0100 Subject: [PATCH] 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 --- t/lisp-flags.sh | 4 ++++ 1 file changed, 4 insertions(+) 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__ -- 2.11.4.GIT