Commit c86f3fe0 authored by Paul Eggert's avatar Paul Eggert

Fix out-of-source ‘make check’ emacs-module-tests

Problem reported by Koki Fukuda in:
* test/ (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.
parent c8b6006d
Pipeline #6020 failed with stage
in 14 seconds
......@@ -258,9 +258,7 @@ endif
# Note: emacs-module.h is generated from, hence we
# look in ../src, not $(srcdir)/../src.
MODULE_CFLAGS = -I../src -I$(srcdir)/../lib \
MODULE_CFLAGS = -I../src -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib \
......@@ -288,6 +288,9 @@ during garbage collection."
(let ((standard-output (current-buffer)))
(describe-function-1 #'mod-test-sum)
(goto-char (point-min))
(while (re-search-forward "`[^']*/data/emacs-module/" nil t)
(replace-match "`data/emacs-module/"))
(should (equal
(buffer-substring-no-properties 1 (point-max))
(format "a module function in `data/emacs-module/mod-test%s'.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment