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 /test/src | |
| 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.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/emacs-module-tests.el | 3 |
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'. |