diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-24 12:31:43 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-24 12:31:43 +0300 |
commit | dec742c5fa8a8ab35b2bbe96f990a84959164f66 (patch) | |
tree | 7a89dd3bee22062fe0d7aa99366988cc7713bbb1 /libbuild2/cc | |
parent | 32b728b7e9ef2505220e8a4d7dffb4bfda94e16e (diff) |
Fortify tests against NDEBUG
Diffstat (limited to 'libbuild2/cc')
-rw-r--r-- | libbuild2/cc/lexer.test.cxx | 4 | ||||
-rw-r--r-- | libbuild2/cc/parser.test.cxx | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libbuild2/cc/lexer.test.cxx b/libbuild2/cc/lexer.test.cxx index 284d592..0d7d12f 100644 --- a/libbuild2/cc/lexer.test.cxx +++ b/libbuild2/cc/lexer.test.cxx @@ -1,7 +1,6 @@ // file : libbuild2/cc/lexer.test.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include <cassert> #include <iostream> #include <libbuild2/types.hxx> @@ -9,6 +8,9 @@ #include <libbuild2/cc/lexer.hxx> +#undef NDEBUG +#include <cassert> + using namespace std; using namespace butl; diff --git a/libbuild2/cc/parser.test.cxx b/libbuild2/cc/parser.test.cxx index 7613741..1d5930a 100644 --- a/libbuild2/cc/parser.test.cxx +++ b/libbuild2/cc/parser.test.cxx @@ -1,7 +1,6 @@ // file : libbuild2/cc/parser.test.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include <cassert> #include <iostream> #include <libbuild2/types.hxx> @@ -9,6 +8,9 @@ #include <libbuild2/cc/parser.hxx> +#undef NDEBUG +#include <cassert> + using namespace std; using namespace butl; |