diff options
| author | Paul Eggert | 2020-07-09 16:35:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-07-09 16:38:45 -0700 |
| commit | c86f3fe0d023cdd25edbbce91c5b32654f2b734e (patch) | |
| tree | 004802f07c19802bec6ad6b6ae34b08474aabaaa | |
| parent | c8b6006d82196f9063581e988ea12d6c99c95536 (diff) | |
| download | emacs-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.in | 4 | ||||
| -rw-r--r-- | test/src/emacs-module-tests.el | 3 |
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 | |||
| 258 | GMP_H = @GMP_H@ | 258 | GMP_H = @GMP_H@ |
| 259 | LIB_GMP = @LIB_GMP@ | 259 | LIB_GMP = @LIB_GMP@ |
| 260 | 260 | ||
| 261 | # Note: emacs-module.h is generated from emacs-module.h.in, hence we | 261 | MODULE_CFLAGS = -I../src -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib \ |
| 262 | # look in ../src, not $(srcdir)/../src. | ||
| 263 | MODULE_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'. |