aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libbuild2/driver.cxx3
-rw-r--r--tests/test/config-test/driver.cxx3
-rw-r--r--tests/test/script/runner/driver.cxx4
-rw-r--r--tests/test/simple/generated/driver.cxx3
4 files changed, 12 insertions, 1 deletions
diff --git a/tests/libbuild2/driver.cxx b/tests/libbuild2/driver.cxx
index 1c4554a..9a8db9e 100644
--- a/tests/libbuild2/driver.cxx
+++ b/tests/libbuild2/driver.cxx
@@ -16,6 +16,9 @@
#include <libbuild2/bash/init.hxx>
#include <libbuild2/version/init.hxx>
+#undef NDEBUG
+#include <cassert>
+
using namespace build2;
int
diff --git a/tests/test/config-test/driver.cxx b/tests/test/config-test/driver.cxx
index 5902854..7ea10e7 100644
--- a/tests/test/config-test/driver.cxx
+++ b/tests/test/config-test/driver.cxx
@@ -3,6 +3,9 @@
#include <iostream>
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
int
diff --git a/tests/test/script/runner/driver.cxx b/tests/test/script/runner/driver.cxx
index f081714..d0e7601 100644
--- a/tests/test/script/runner/driver.cxx
+++ b/tests/test/script/runner/driver.cxx
@@ -11,7 +11,6 @@
#include <limits> // numeric_limits
#include <string>
#include <cstdlib> // abort()
-#include <cassert>
#include <ostream> // endl, *bit
#include <istream> // istream::traits_type::eof()
#include <iostream>
@@ -22,6 +21,9 @@
#include <libbutl/fdstream.mxx>
#include <libbutl/filesystem.mxx>
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
using namespace butl;
diff --git a/tests/test/simple/generated/driver.cxx b/tests/test/simple/generated/driver.cxx
index 18fd0ae..89dacca 100644
--- a/tests/test/simple/generated/driver.cxx
+++ b/tests/test/simple/generated/driver.cxx
@@ -12,6 +12,9 @@
#include <fstream>
#include <iostream>
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
// If the -s option is specified, then also sleep for 5 seconds.