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_handler.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libtests/json_handler.cc') diff --git a/libtests/json_handler.cc b/libtests/json_handler.cc index 568677a8..6e894e11 100644 --- a/libtests/json_handler.cc +++ b/libtests/json_handler.cc @@ -2,6 +2,11 @@ #include #include #include + +#ifdef NDEBUG +// We need assert even in a release build for test code. +# undef NDEBUG +#endif #include static void print_null(std::string const& path) -- cgit v1.2.3-54-g00ecf