From: Glenn Morris Date: Mon, 4 Nov 2013 01:48:08 +0000 (-0800) Subject: * test/automated/Makefile.in (abs_srcdir): Remove. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1001 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8b77446f3f4e49780e29cd936211eeee1453ca6c;p=emacs.git * test/automated/Makefile.in (abs_srcdir): Remove. (emacs): Unset EMACSLOADPATH. (.el.elc, check): Use -L to append srcdir to load-path. --- diff --git a/test/ChangeLog b/test/ChangeLog index 6d00a61aeed..1439ee12bb4 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,9 @@ +2013-11-04 Glenn Morris + + * automated/Makefile.in (abs_srcdir): Remove. + (emacs): Unset EMACSLOADPATH. + (.el.elc, check): Use -L to append srcdir to load-path. + 2013-11-02 Glenn Morris * automated/Makefile.in (top_builddir, abs_test, abs_lispsrc, lisp) diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in index 7ddade8dadc..e03ebbbf82d 100644 --- a/test/automated/Makefile.in +++ b/test/automated/Makefile.in @@ -20,7 +20,6 @@ SHELL = @SHELL@ srcdir = @srcdir@ -abs_srcdir = @abs_srcdir@ VPATH = $(srcdir) # We never change directory before running Emacs, so a relative file @@ -35,7 +34,8 @@ EMACSOPT = -batch --no-site-file --no-site-lisp BYTE_COMPILE_EXTRA_FLAGS = # The actual Emacs command run in the targets below. -emacs = EMACSLOADPATH="$(abs_srcdir)/../../lisp:$(abs_srcdir)" LC_ALL=C "$(EMACS)" $(EMACSOPT) +# Prevent any setting of EMACSLOADPATH in user environment causing problems. +emacs = unset EMACSLOADPATH; LC_ALL=C "$(EMACS)" $(EMACSOPT) # Common command to find subdirectories setwins=subdirs=`find . -type d -print`; \ @@ -55,7 +55,7 @@ all: check .el.elc: @echo Compiling $< - @$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $< + @$(emacs) -L :$(srcdir) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $< .PHONY: compile-targets compile-main compile-clean @@ -110,6 +110,6 @@ check: compile-main done; \ echo Testing $$els; \ cd "$$thisdir"; \ - $(emacs) --chdir $(srcdir) $$args -f ert-run-tests-batch-and-exit + $(emacs) --chdir $(srcdir) -L :. $$args -f ert-run-tests-batch-and-exit # Makefile ends here.