aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/json_handler.cc
diff options
context:
space:
mode:
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)