aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-09-24 12:43:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-09-24 12:43:21 +0300
commit52305ec0f8bd3fbff63a538fbef12ab9fee4340f (patch)
tree5cdee71cf838672f451c1a1a02aa1109b03bee20
parentd7d126901a95a6d01fb002b05185417e46a71070 (diff)
Fortify tests against NDEBUG
-rw-r--r--tests/buildtab/driver.cxx4
-rw-r--r--tests/manifest/driver.cxx4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/buildtab/driver.cxx b/tests/buildtab/driver.cxx
index 13d0d71..34550db 100644
--- a/tests/buildtab/driver.cxx
+++ b/tests/buildtab/driver.cxx
@@ -2,13 +2,15 @@
// license : MIT; see accompanying LICENSE file
#include <ios> // ios::failbit, ios::badbit
-#include <cassert>
#include <iostream>
#include <libbutl/utility.mxx> // operator<<(ostream,exception)
#include <libbbot/build-config.hxx>
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
using namespace butl;
using namespace bbot;
diff --git a/tests/manifest/driver.cxx b/tests/manifest/driver.cxx
index 821aa63..2a38352 100644
--- a/tests/manifest/driver.cxx
+++ b/tests/manifest/driver.cxx
@@ -3,7 +3,6 @@
#include <ios> // ios_base::failbit, ios_base::badbit
#include <string>
-#include <cassert>
#include <iostream>
#include <libbutl/utility.mxx> // operator<<(ostream,exception)
@@ -12,6 +11,9 @@
#include <libbbot/manifest.hxx>
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
using namespace butl;
using namespace bbot;