diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-03-07 14:46:53 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-03-07 16:07:27 +0100 |
commit | 17c0e38c8efa7882f8e6a13c6030edf3e768257c (patch) | |
tree | 12e4a483fa885fdf55998d4ead5200da293a4829 /libtests/arg_parser.cc | |
parent | 066efb69aec4aa1a62ecf56902a5f4f3d2c73bd5 (diff) | |
download | qpdf-17c0e38c8efa7882f8e6a13c6030edf3e768257c.tar.zst |
Force assert to be defined in test code
Diffstat (limited to 'libtests/arg_parser.cc')
-rw-r--r-- | libtests/arg_parser.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libtests/arg_parser.cc b/libtests/arg_parser.cc index 0c7e6787..4b10709e 100644 --- a/libtests/arg_parser.cc +++ b/libtests/arg_parser.cc @@ -3,6 +3,11 @@ #include <qpdf/QPDFUsage.hh> #include <iostream> #include <cstring> + +#ifdef NDEBUG +// We need assert even in a release build for test code. +# undef NDEBUG +#endif #include <cassert> class ArgParser |