aboutsummaryrefslogtreecommitdiff
path: root/tests/parser
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-10-14 21:28:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-10-14 21:28:24 +0300
commit9137f385af0fe619a310b25be82ddfe3c6ae37e2 (patch)
tree031dc2ac372594f37996afbee9363eda0cad1234 /tests/parser
parente729667b0f34a39ce4a61339843af4154648667b (diff)
Fortify tests against NDEBUG
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/driver.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/parser/driver.cxx b/tests/parser/driver.cxx
index f9128ec..c4d1413 100644
--- a/tests/parser/driver.cxx
+++ b/tests/parser/driver.cxx
@@ -1,18 +1,16 @@
// file : tests/parser/driver.cxx
// license : MIT; see accompanying LICENSE file
-#ifdef NDEBUG
-# error tests require enabled assert(); un-define the NDEBUG macro
-#endif
-
#include <string>
#include <vector>
-#include <cassert>
#include <iostream>
#include <sstream>
#include <libstudxml/parser.hxx>
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
using namespace xml;