From 17c0e38c8efa7882f8e6a13c6030edf3e768257c Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 7 Mar 2022 08:46:53 -0500 Subject: Force assert to be defined in test code --- libtests/json.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libtests/json.cc') diff --git a/libtests/json.cc b/libtests/json.cc index c37af0e8..a8c72a3b 100644 --- a/libtests/json.cc +++ b/libtests/json.cc @@ -1,6 +1,11 @@ #include #include #include + +#ifdef NDEBUG +// We need assert even in a release build for test code. +# undef NDEBUG +#endif #include static void check(JSON const& j, std::string const& exp) -- cgit v1.2.3-54-g00ecf