aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/json_handler.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-03-07 14:46:53 +0100
committerJay Berkenbilt <ejb@ql.org>2022-03-07 16:07:27 +0100
commit17c0e38c8efa7882f8e6a13c6030edf3e768257c (patch)
tree12e4a483fa885fdf55998d4ead5200da293a4829 /libtests/json_handler.cc
parent066efb69aec4aa1a62ecf56902a5f4f3d2c73bd5 (diff)
downloadqpdf-17c0e38c8efa7882f8e6a13c6030edf3e768257c.tar.zst
Force assert to be defined in test code
Diffstat (limited to 'libtests/json_handler.cc')
-rw-r--r--libtests/json_handler.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libtests/json_handler.cc b/libtests/json_handler.cc
index 568677a8..6e894e11 100644
--- a/libtests/json_handler.cc
+++ b/libtests/json_handler.cc
@@ -2,6 +2,11 @@
#include <qpdf/QUtil.hh>
#include <qpdf/QPDFUsage.hh>
#include <iostream>
+
+#ifdef NDEBUG
+// We need assert even in a release build for test code.
+# undef NDEBUG
+#endif
#include <cassert>
static void print_null(std::string const& path)