mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2024-11-14 14:33:50 +08:00
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 <emil.l.velikov@gmail.com> Link: https://github.com/kmod-project/kmod/pull/238 Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
parent
1ae4c61082
commit
a076809c96
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user