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/cc/lexer.test.cxx | 4 +++- libbuild2/cc/parser.test.cxx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'libbuild2/cc') 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 #include #include @@ -9,6 +8,9 @@ #include +#undef NDEBUG +#include + 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 #include #include @@ -9,6 +8,9 @@ #include +#undef NDEBUG +#include + using namespace std; using namespace butl; -- cgit v1.1