diff options
Diffstat (limited to 'libtests/json.cc')
-rw-r--r-- | libtests/json.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libtests/json.cc b/libtests/json.cc index c37af0e8..a8c72a3b 100644 --- a/libtests/json.cc +++ b/libtests/json.cc @@ -1,6 +1,11 @@ #include <qpdf/JSON.hh> #include <qpdf/QPDFObjectHandle.hh> #include <iostream> + +#ifdef NDEBUG +// We need assert even in a release build for test code. +# undef NDEBUG +#endif #include <cassert> static void check(JSON const& j, std::string const& exp) |