Use --module-assertions if modules are available
Using --module-assertions helps us find bugs in the test module. But we can use it only if Emacs was compiled with module support. * test/Makefile.in (MODULES_EMACSOPT): New variable. (emacs): Use it.
This commit is contained in:
parent
a2f7cc3499
commit
ac649dc4b4
1 changed files with 7 additions and 1 deletions
|
@ -97,11 +97,17 @@ TEST_LOCALE = C
|
|||
# this by default since it gives nicer stacktraces.
|
||||
TEST_LOAD_EL ?= yes
|
||||
|
||||
ifeq (@HAVE_MODULES@, yes)
|
||||
MODULES_EMACSOPT := --module-assertions
|
||||
else
|
||||
MODULES_EMACSOPT :=
|
||||
endif
|
||||
|
||||
# The actual Emacs command run in the targets below.
|
||||
# Prevent any setting of EMACSLOADPATH in user environment causing problems.
|
||||
emacs = EMACSLOADPATH= LC_ALL=$(TEST_LOCALE) \
|
||||
EMACS_TEST_DIRECTORY=$(abspath $(srcdir)) \
|
||||
$(GDB) "$(EMACS)" $(EMACSOPT)
|
||||
$(GDB) "$(EMACS)" $(MODULES_EMACSOPT) $(EMACSOPT)
|
||||
|
||||
test_module_dir := $(srcdir)/data/emacs-module
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue