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/rc4.cc | |
parent | 066efb69aec4aa1a62ecf56902a5f4f3d2c73bd5 (diff) | |
download | qpdf-17c0e38c8efa7882f8e6a13c6030edf3e768257c.tar.zst |
Force assert to be defined in test code
Diffstat (limited to 'libtests/rc4.cc')
-rw-r--r-- | libtests/rc4.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libtests/rc4.cc b/libtests/rc4.cc index eab3a759..b7aecd4b 100644 --- a/libtests/rc4.cc +++ b/libtests/rc4.cc @@ -7,6 +7,11 @@ #include <string.h> #include <iostream> #include <stdlib.h> + +#ifdef NDEBUG +// We need assert even in a release build for test code. +# undef NDEBUG +#endif #include <cassert> static void other_tests() |