From 0d5b04ad9cbb783cf0d71d1587aecb8470c21d31 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 20 Oct 2022 14:42:25 +0200 Subject: [PATCH] glib-aux/tests: reinclude with NDEBUG undefined While we usually don't do that, we also want to build with NDEBUG. But in that case, we don't want that the assertions from our unit tests are disabled. Solve that by undefining NDEBUG and re-including . --- src/libnm-glib-aux/nm-test-utils.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libnm-glib-aux/nm-test-utils.h b/src/libnm-glib-aux/nm-test-utils.h index e884534727..6b4ed18916 100644 --- a/src/libnm-glib-aux/nm-test-utils.h +++ b/src/libnm-glib-aux/nm-test-utils.h @@ -85,6 +85,9 @@ #undef g_assertion_message_expr #endif +#undef NDEBUG +#include + #include #include #include