aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorPaul Eggert2020-07-09 16:35:48 -0700
committerPaul Eggert2020-07-09 16:38:45 -0700
commitc86f3fe0d023cdd25edbbce91c5b32654f2b734e (patch)
tree004802f07c19802bec6ad6b6ae34b08474aabaaa /test/src
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.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/emacs-module-tests.el3
1 files changed, 3 insertions, 0 deletions
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'.