tests: avoid a spurious failure when running inside Emacs
authorThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 21 Jan 2013 12:35:03 +0000 (13:35 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 21 Jan 2013 12:35:03 +0000 (13:35 +0100)
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 <stefano.lattarini@gmail.com>
t/lisp-flags.sh

index f55b18f..a31bcfd 100755 (executable)
 
 . 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__