From: Emil Velikov Date: Mon, 11 Nov 2024 13:08:20 +0000 (+0000) Subject: meson: undefine NDEBUG in the tests X-Git-Tag: v34~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a076809c9635fa0f556ad933deb9b4493e1ca74b;p=thirdparty%2Fkmod.git meson: undefine NDEBUG in the tests When using -D b_ndebug=true or inheriting CFLAGS="-DNDEBUG" from the environment, the asserts will be no-op thus the checks in the LD_PRELOADED libraries will be omitted. Explicitly undefine the macro, so we don't accidentally shoot ourselves in the foot. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/238 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/meson.build b/testsuite/meson.build index e82f6082..fdfa6eb1 100644 --- a/testsuite/meson.build +++ b/testsuite/meson.build @@ -62,6 +62,7 @@ foreach mod : _test_override_mods endforeach testsuite_c_args = [ + '-UNDEBUG', '-DTESTSUITE_ROOTFS="@0@/testsuite/rootfs/"'.format(meson.project_build_root()), '-DTOOLS_DIR="@0@/"'.format(meson.project_build_root()), '-DOVERRIDE_LIBDIR="@0@/testsuite/"'.format(meson.project_build_root()),