diff options
| author | Glenn Morris | 2013-11-03 17:48:08 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-11-03 17:48:08 -0800 |
| commit | 8b77446f3f4e49780e29cd936211eeee1453ca6c (patch) | |
| tree | 70833273df45f7eb4bda13c28b3f28c10ce771e8 | |
| parent | 6dc6d301796849936993ba5827dc9fe156647b64 (diff) | |
| download | emacs-8b77446f3f4e49780e29cd936211eeee1453ca6c.tar.gz emacs-8b77446f3f4e49780e29cd936211eeee1453ca6c.zip | |
* test/automated/Makefile.in (abs_srcdir): Remove.
(emacs): Unset EMACSLOADPATH.
(.el.elc, check): Use -L to append srcdir to load-path.
| -rw-r--r-- | test/ChangeLog | 6 | ||||
| -rw-r--r-- | test/automated/Makefile.in | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 6d00a61aeed..1439ee12bb4 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-11-04 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/Makefile.in (abs_srcdir): Remove. | ||
| 4 | (emacs): Unset EMACSLOADPATH. | ||
| 5 | (.el.elc, check): Use -L to append srcdir to load-path. | ||
| 6 | |||
| 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> | 7 | 2013-11-02 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * automated/Makefile.in (top_builddir, abs_test, abs_lispsrc, lisp) | 9 | * 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 @@ | |||
| 20 | SHELL = @SHELL@ | 20 | SHELL = @SHELL@ |
| 21 | 21 | ||
| 22 | srcdir = @srcdir@ | 22 | srcdir = @srcdir@ |
| 23 | abs_srcdir = @abs_srcdir@ | ||
| 24 | VPATH = $(srcdir) | 23 | VPATH = $(srcdir) |
| 25 | 24 | ||
| 26 | # We never change directory before running Emacs, so a relative file | 25 | # We never change directory before running Emacs, so a relative file |
| @@ -35,7 +34,8 @@ EMACSOPT = -batch --no-site-file --no-site-lisp | |||
| 35 | BYTE_COMPILE_EXTRA_FLAGS = | 34 | BYTE_COMPILE_EXTRA_FLAGS = |
| 36 | 35 | ||
| 37 | # The actual Emacs command run in the targets below. | 36 | # The actual Emacs command run in the targets below. |
| 38 | emacs = EMACSLOADPATH="$(abs_srcdir)/../../lisp:$(abs_srcdir)" LC_ALL=C "$(EMACS)" $(EMACSOPT) | 37 | # Prevent any setting of EMACSLOADPATH in user environment causing problems. |
| 38 | emacs = unset EMACSLOADPATH; LC_ALL=C "$(EMACS)" $(EMACSOPT) | ||
| 39 | 39 | ||
| 40 | # Common command to find subdirectories | 40 | # Common command to find subdirectories |
| 41 | setwins=subdirs=`find . -type d -print`; \ | 41 | setwins=subdirs=`find . -type d -print`; \ |
| @@ -55,7 +55,7 @@ all: check | |||
| 55 | 55 | ||
| 56 | .el.elc: | 56 | .el.elc: |
| 57 | @echo Compiling $< | 57 | @echo Compiling $< |
| 58 | @$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $< | 58 | @$(emacs) -L :$(srcdir) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $< |
| 59 | 59 | ||
| 60 | 60 | ||
| 61 | .PHONY: compile-targets compile-main compile-clean | 61 | .PHONY: compile-targets compile-main compile-clean |
| @@ -110,6 +110,6 @@ check: compile-main | |||
| 110 | done; \ | 110 | done; \ |
| 111 | echo Testing $$els; \ | 111 | echo Testing $$els; \ |
| 112 | cd "$$thisdir"; \ | 112 | cd "$$thisdir"; \ |
| 113 | $(emacs) --chdir $(srcdir) $$args -f ert-run-tests-batch-and-exit | 113 | $(emacs) --chdir $(srcdir) -L :. $$args -f ert-run-tests-batch-and-exit |
| 114 | 114 | ||
| 115 | # Makefile ends here. | 115 | # Makefile ends here. |