aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorPaul Eggert2020-07-09 16:35:48 -0700
committerGlenn Morris2020-09-25 10:33:27 -0700
commitcc7f9714858ab9f1fc30ffcfc5acc018da2b5d4d (patch)
treedd83072f2976516812261bc93aee292d79c2964e /test/src
parentf31c6792ab98c8be343838f59d96e35c05353521 (diff)
downloademacs-cc7f9714858ab9f1fc30ffcfc5acc018da2b5d4d.tar.gz
emacs-cc7f9714858ab9f1fc30ffcfc5acc018da2b5d4d.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. (cherry picked from commit c86f3fe0d023cdd25edbbce91c5b32654f2b734e)
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 91206156f85..9df0b25a0c5 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -318,6 +318,9 @@ local reference."
318 (with-temp-buffer 318 (with-temp-buffer
319 (let ((standard-output (current-buffer))) 319 (let ((standard-output (current-buffer)))
320 (describe-function-1 #'mod-test-sum) 320 (describe-function-1 #'mod-test-sum)
321 (goto-char (point-min))
322 (while (re-search-forward "`[^']*/data/emacs-module/" nil t)
323 (replace-match "`data/emacs-module/"))
321 (should (equal 324 (should (equal
322 (buffer-substring-no-properties 1 (point-max)) 325 (buffer-substring-no-properties 1 (point-max))
323 (format "a module function in `data/emacs-module/mod-test%s'. 326 (format "a module function in `data/emacs-module/mod-test%s'.