summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMomtchil Momtchev <momtchil@momtchev.com>2023-04-14 10:59:31 +0200
committerMomtchil Momtchev <momtchil@momtchev.com>2023-04-14 10:59:31 +0200
commit3828b247be412fb368f4c0f2d6935335707c3b31 (patch)
tree92b00a4b8829eeb1ca31b5cfa44ee45b9ea747ec
parentd39cee1ce151fbe4920f0446b287835208104271 (diff)
downloadswig-3828b247be412fb368f4c0f2d6935335707c3b31.tar.gz
actually test the value
-rw-r--r--Examples/test-suite/preproc_defined.i2
-rw-r--r--Examples/test-suite/python/preproc_defined_runme.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/Examples/test-suite/preproc_defined.i b/Examples/test-suite/preproc_defined.i
index 13bbd6698..21afa86ec 100644
--- a/Examples/test-suite/preproc_defined.i
+++ b/Examples/test-suite/preproc_defined.i
@@ -125,4 +125,4 @@ void another_macro_checking(void) {
#endif
#define __attribute__(x)
-
+%import <preproc_defined.h>
diff --git a/Examples/test-suite/python/preproc_defined_runme.py b/Examples/test-suite/python/preproc_defined_runme.py
index af46816be..4be937b8d 100644
--- a/Examples/test-suite/python/preproc_defined_runme.py
+++ b/Examples/test-suite/python/preproc_defined_runme.py
@@ -3,6 +3,9 @@ import preproc_defined
if preproc_defined.call_checking() != 1:
raise RuntimeError
+if preproc_defined.y != 8:
+ raise RuntimeError()
+
d = preproc_defined.Defined()
d.defined = 10