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/matrix.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libtests/matrix.cc') diff --git a/libtests/matrix.cc b/libtests/matrix.cc index ecaa02a0..210c022f 100644 --- a/libtests/matrix.cc +++ b/libtests/matrix.cc @@ -1,8 +1,13 @@ #include #include -#include #include +#ifdef NDEBUG +// We need assert even in a release build for test code. +# undef NDEBUG +#endif +#include + static void check(QPDFMatrix const& m, std::string const& exp) { std::string u = m.unparse(); -- cgit v1.2.3-54-g00ecf