From f291b44f3b3d2dc498e5c436ffe7e8fe1660749f Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 22 Nov 2024 12:18:58 +0100 Subject: [PATCH] tests: Use LeakSanitizer to catch future memory leaks Signed-off-by: Jakub Jelen --- tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/meson.build b/tests/meson.build index ce874e66..3c640638 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -78,7 +78,7 @@ if get_option('b_sanitize') == 'address' name_prefix: '', ) - test_env.set('ASAN_OPTIONS', 'fast_unwind_on_malloc=0') + test_env.set('ASAN_OPTIONS', 'fast_unwind_on_malloc=0:detect_leaks=1') test_env.set('LSAN_OPTIONS', 'suppressions=@0@/lsan.supp'.format(meson.current_source_dir())) test_env.set('FAKE_DLCLOSE', fake_dlclose.full_path())