aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/name.test.cxx
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/name.test.cxx
parent32b728b7e9ef2505220e8a4d7dffb4bfda94e16e (diff)
Fortify tests against NDEBUG
Diffstat (limited to 'libbuild2/name.test.cxx')
-rw-r--r--libbuild2/name.test.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/name.test.cxx b/libbuild2/name.test.cxx
index 979e8ab..80b830e 100644
--- a/libbuild2/name.test.cxx
+++ b/libbuild2/name.test.cxx
@@ -3,7 +3,6 @@
#include <sstream>
-#include <cassert>
#include <iostream>
#include <libbuild2/types.hxx> // Includes name.
@@ -11,6 +10,9 @@
#include <libbuild2/diagnostics.hxx>
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
namespace build2