From 17c0e38c8efa7882f8e6a13c6030edf3e768257c Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 7 Mar 2022 08:46:53 -0500 Subject: Force assert to be defined in test code --- libtests/qutil.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libtests/qutil.cc') diff --git a/libtests/qutil.cc b/libtests/qutil.cc index b9b7c674..c3a9b163 100644 --- a/libtests/qutil.cc +++ b/libtests/qutil.cc @@ -9,7 +9,6 @@ #include #include #include -#include #include #include @@ -19,6 +18,12 @@ # include #endif +#ifdef NDEBUG +// We need assert even in a release build for test code. +# undef NDEBUG +#endif +#include + template void test_to_number(char const* str, int_T wanted, bool error, int_T (*fn)(char const*)) -- cgit v1.2.3-70-g09d2