aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndy Moreton2018-01-26 12:09:42 +0200
committerEli Zaretskii2018-01-26 12:09:42 +0200
commite08f241658667a328bade89ab479fc5f7389bb9b (patch)
tree8dcec0a391a46e0cb3cce343f0499877fa84628c /test/src
parent62e4148a395c706aa87ca6d00110f0e174ece9f1 (diff)
downloademacs-e08f241658667a328bade89ab479fc5f7389bb9b.tar.gz
emacs-e08f241658667a328bade89ab479fc5f7389bb9b.zip
Fix emacs-module-tests to work out of build tree
* test/Makefile.in (test_module_dir): Build the test module library in a subdirectory of the build directory (not the source tree). (MODULE_CFLAGS): Fix location of emacs-module.h header file. (test_module): Move built library out of the source tree. * test/src/emacs-module-tests.el (mod-test-file): Locate the test module library relative to the running Emacs executable.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/emacs-module-tests.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index d9406a9609e..85d63053867 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -25,8 +25,7 @@
25 25
26(eval-and-compile 26(eval-and-compile
27 (defconst mod-test-file 27 (defconst mod-test-file
28 (substitute-in-file-name 28 (expand-file-name "../test/data/emacs-module/mod-test" invocation-directory)
29 "$EMACS_TEST_DIRECTORY/data/emacs-module/mod-test")
30 "File name of the module test file.")) 29 "File name of the module test file."))
31 30
32(require 'mod-test mod-test-file) 31(require 'mod-test mod-test-file)