aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-09-24 12:31:43 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-09-24 12:31:43 +0300
commitdec742c5fa8a8ab35b2bbe96f990a84959164f66 (patch)
tree7a89dd3bee22062fe0d7aa99366988cc7713bbb1 /libbuild2/test
parent32b728b7e9ef2505220e8a4d7dffb4bfda94e16e (diff)
Fortify tests against NDEBUG
Diffstat (limited to 'libbuild2/test')
-rw-r--r--libbuild2/test/script/lexer.test.cxx4
-rw-r--r--libbuild2/test/script/parser.test.cxx4
2 files changed, 6 insertions, 2 deletions
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 <cassert>
#include <iostream>
#include <libbuild2/types.hxx>
@@ -10,6 +9,9 @@
#include <libbuild2/test/script/token.hxx>
#include <libbuild2/test/script/lexer.hxx>
+#undef NDEBUG
+#include <cassert>
+
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 <cassert>
#include <iostream>
#include <libbuild2/types.hxx>
@@ -18,6 +17,9 @@
#include <libbuild2/test/script/parser.hxx>
#include <libbuild2/test/script/runner.hxx>
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
namespace build2