summaryrefslogtreecommitdiff
path: root/Examples/test-suite/common.mk
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2022-02-06 10:18:49 +1300
committerOlly Betts <olly@survex.com>2022-02-06 10:18:49 +1300
commitb06ab566cba115d13e5043289ebec7c801021fea (patch)
tree0c4c96c9d9bc78ceafb512a0c637920b6ca1e09f /Examples/test-suite/common.mk
parent9d7c962ee8e4a8ee9a443f4385cb8dfa80a49296 (diff)
downloadswig-b06ab566cba115d13e5043289ebec7c801021fea.tar.gz
-DFOO on the SWIG command line now sets FOO to 1
This is consistent with C/C++ compiler preprocessors. Previously SWIG set FOO to an empty value. Fixes #2193
Diffstat (limited to 'Examples/test-suite/common.mk')
-rw-r--r--Examples/test-suite/common.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk
index d06766b34..25ca2d512 100644
--- a/Examples/test-suite/common.mk
+++ b/Examples/test-suite/common.mk
@@ -692,6 +692,7 @@ C_TEST_CASES += \
c_delete \
c_delete_function \
char_constant \
+ command_line_define \
const_const \
constant_expr_c \
default_args_c \
@@ -761,6 +762,7 @@ MULTI_CPP_TEST_CASES += \
# Custom tests - tests with additional commandline options
wallkw.cpptest: SWIGOPT += -Wallkw
preproc_include.ctest: SWIGOPT += -includeall
+command_line_define.ctest: SWIGOPT += -DFOO
# Allow modules to define temporarily failing tests.
C_TEST_CASES := $(filter-out $(FAILING_C_TESTS),$(C_TEST_CASES))