diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-03 14:21:01 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-04 00:31:22 +0200 |
commit | 62bf296a9c0f5be492f0677ed111b3fa217f4c11 (patch) | |
tree | f49564b3d70a12ee4e16e84c4e4e33a2adce1133 /libtests/rc4.cc | |
parent | 92b692466f7a4dbf4e51e6a77713c029a3e18ab1 (diff) | |
download | qpdf-62bf296a9c0f5be492f0677ed111b3fa217f4c11.tar.zst |
Make assert handling less error-prone
Prevent my future self or other contributors from using assert in
tests and then having that assert not do anything because of the
NDEBUG macro.
Diffstat (limited to 'libtests/rc4.cc')
-rw-r--r-- | libtests/rc4.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libtests/rc4.cc b/libtests/rc4.cc index 7245ef86..1b1a8744 100644 --- a/libtests/rc4.cc +++ b/libtests/rc4.cc @@ -1,3 +1,5 @@ +#include <qpdf/assert_test.h> + #include <qpdf/Pl_RC4.hh> #include <qpdf/Pl_StdioFile.hh> #include <qpdf/QIntC.hh> @@ -8,12 +10,6 @@ #include <stdlib.h> #include <string.h> -#ifdef NDEBUG -// We need assert even in a release build for test code. -# undef NDEBUG -#endif -#include <cassert> - static void other_tests() { |