From 26c33a2dccb0590f9460de67694238323d3af37b Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 2 Sep 2023 18:06:43 +0200 Subject: [PATCH] tests: Undef NDEBUG where needed more after refactoring All other test files using assert(..) and have the same. --- expat/tests/chardata.c | 4 ++++ expat/tests/minicheck.c | 4 ++++ expat/tests/structdata.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/expat/tests/chardata.c b/expat/tests/chardata.c index 48da7cf1..1a801ba8 100644 --- a/expat/tests/chardata.c +++ b/expat/tests/chardata.c @@ -34,6 +34,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#if defined(NDEBUG) +# undef NDEBUG /* because test suite relies on assert(...) at the moment */ +#endif + #include #include "minicheck.h" diff --git a/expat/tests/minicheck.c b/expat/tests/minicheck.c index 1c657481..3a833bb6 100644 --- a/expat/tests/minicheck.c +++ b/expat/tests/minicheck.c @@ -37,6 +37,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#if defined(NDEBUG) +# undef NDEBUG /* because test suite relies on assert(...) at the moment */ +#endif + #include #include #include diff --git a/expat/tests/structdata.c b/expat/tests/structdata.c index 236c7f5e..6917eb50 100644 --- a/expat/tests/structdata.c +++ b/expat/tests/structdata.c @@ -30,6 +30,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#if defined(NDEBUG) +# undef NDEBUG /* because test suite relies on assert(...) at the moment */ +#endif + #include "expat_config.h" #include