aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2020-07-09 16:35:48 -0700
committerPaul Eggert2020-07-09 16:38:45 -0700
commitc86f3fe0d023cdd25edbbce91c5b32654f2b734e (patch)
tree004802f07c19802bec6ad6b6ae34b08474aabaaa
parentc8b6006d82196f9063581e988ea12d6c99c95536 (diff)
downloademacs-c86f3fe0d023cdd25edbbce91c5b32654f2b734e.tar.gz
emacs-c86f3fe0d023cdd25edbbce91c5b32654f2b734e.zip
Fix out-of-source ‘make check’ emacs-module-tests
Problem reported by Koki Fukuda in: https://lists.gnu.org/r/emacs-devel/2020-07/msg00169.html * test/Makefile.in (MODULE_CFLAGS): Include from the same directories included from in ../src. * test/src/emacs-module-tests.el (module/describe-function-1): Strip path to source directory.
-rw-r--r--test/Makefile.in4
-rw-r--r--test/src/emacs-module-tests.el3
2 files changed, 4 insertions, 3 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 10e3d9617d3..c4840670e61 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -258,9 +258,7 @@ endif
258GMP_H = @GMP_H@ 258GMP_H = @GMP_H@
259LIB_GMP = @LIB_GMP@ 259LIB_GMP = @LIB_GMP@
260 260
261# Note: emacs-module.h is generated from emacs-module.h.in, hence we 261MODULE_CFLAGS = -I../src -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib \
262# look in ../src, not $(srcdir)/../src.
263MODULE_CFLAGS = -I../src -I$(srcdir)/../lib \
264 $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ 262 $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \
265 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) 263 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS)
266 264
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index 6851b890451..411b4505da0 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -288,6 +288,9 @@ during garbage collection."
288 (with-temp-buffer 288 (with-temp-buffer
289 (let ((standard-output (current-buffer))) 289 (let ((standard-output (current-buffer)))
290 (describe-function-1 #'mod-test-sum) 290 (describe-function-1 #'mod-test-sum)
291 (goto-char (point-min))
292 (while (re-search-forward "`[^']*/data/emacs-module/" nil t)
293 (replace-match "`data/emacs-module/"))
291 (should (equal 294 (should (equal
292 (buffer-substring-no-properties 1 (point-max)) 295 (buffer-substring-no-properties 1 (point-max))
293 (format "a module function in `data/emacs-module/mod-test%s'. 296 (format "a module function in `data/emacs-module/mod-test%s'.