From dec742c5fa8a8ab35b2bbe96f990a84959164f66 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 24 Sep 2021 12:31:43 +0300 Subject: Fortify tests against NDEBUG --- libbuild2/test/script/lexer.test.cxx | 4 +++- libbuild2/test/script/parser.test.cxx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'libbuild2/test') diff --git a/libbuild2/test/script/lexer.test.cxx b/libbuild2/test/script/lexer.test.cxx index 9c64616..76f102d 100644 --- a/libbuild2/test/script/lexer.test.cxx +++ b/libbuild2/test/script/lexer.test.cxx @@ -1,7 +1,6 @@ // file : libbuild2/test/script/lexer.test.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include #include #include @@ -10,6 +9,9 @@ #include #include +#undef NDEBUG +#include + using namespace std; namespace build2 diff --git a/libbuild2/test/script/parser.test.cxx b/libbuild2/test/script/parser.test.cxx index 202f368..47d56ce 100644 --- a/libbuild2/test/script/parser.test.cxx +++ b/libbuild2/test/script/parser.test.cxx @@ -1,7 +1,6 @@ // file : libbuild2/test/script/parser.test.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include #include #include @@ -18,6 +17,9 @@ #include #include +#undef NDEBUG +#include + using namespace std; namespace build2 -- cgit v1.1