emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c86f3fe 4/4: Fix out-of-source ‘make check’ emacs-module-tests


From: Paul Eggert
Subject: master c86f3fe 4/4: Fix out-of-source ‘make check’ emacs-module-tests
Date: Thu, 9 Jul 2020 19:38:54 -0400 (EDT)

branch: master
commit c86f3fe0d023cdd25edbbce91c5b32654f2b734e
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    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.
---
 test/Makefile.in               | 4 +---
 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 10e3d96..c484067 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -258,9 +258,7 @@ endif
 GMP_H = @GMP_H@
 LIB_GMP = @LIB_GMP@
 
-# Note: emacs-module.h is generated from emacs-module.h.in, 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 \
   $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \
   $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS)
 
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index 6851b89..411b450 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -288,6 +288,9 @@ during garbage collection."
   (with-temp-buffer
     (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'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]