tests: refactor/enhance tests about make dry-run mode
[platform/upstream/automake.git] / t / lisp-flags.sh
index 1d7d8f3..a31bcfd 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2003-2012 Free Software Foundation, Inc.
+# Copyright (C) 2003-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 
 # Elisp byte-compilation honours AM_ELCFLAFS and ELCFLAGS.
 
-. ./defs || exit 1
+. 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