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 /old-tests | |
parent | 32b728b7e9ef2505220e8a4d7dffb4bfda94e16e (diff) |
Fortify tests against NDEBUG
Diffstat (limited to 'old-tests')
-rw-r--r-- | old-tests/depdb/driver.cxx | 3 | ||||
-rw-r--r-- | old-tests/lexer/driver.cxx | 4 | ||||
-rw-r--r-- | old-tests/parser/driver.cxx | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/old-tests/depdb/driver.cxx b/old-tests/depdb/driver.cxx index b802662..47f99af 100644 --- a/old-tests/depdb/driver.cxx +++ b/old-tests/depdb/driver.cxx @@ -10,6 +10,9 @@ #include <libbuild2/depdb.hxx> +#undef NDEBUG +#include <cassert> + using namespace std; using namespace build2; diff --git a/old-tests/lexer/driver.cxx b/old-tests/lexer/driver.cxx index 588f062..f5e47c3 100644 --- a/old-tests/lexer/driver.cxx +++ b/old-tests/lexer/driver.cxx @@ -3,13 +3,15 @@ #include <string> #include <vector> -#include <cassert> #include <sstream> #include <iostream> #include <build/token> #include <build/lexer> +#undef NDEBUG +#include <cassert> + using namespace std; using namespace build; diff --git a/old-tests/parser/driver.cxx b/old-tests/parser/driver.cxx index a5b6820..6fb5aee 100644 --- a/old-tests/parser/driver.cxx +++ b/old-tests/parser/driver.cxx @@ -1,7 +1,6 @@ // file : tests/build/parser/driver.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include <cassert> #include <sstream> #include <iostream> @@ -14,6 +13,9 @@ #include <build/lexer> #include <build/parser> +#undef NDEBUG +#include <cassert> + using namespace std; using namespace build; |