From aa9447c8337a51013519392ee8b8cbfec9a19186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Thu, 5 Jun 2025 10:26:49 +0200 Subject: [PATCH] tests: Allow to run some tests under asan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guido Günther --- src/tests/meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tests/meson.build b/src/tests/meson.build index a9216c24..18ece913 100644 --- a/src/tests/meson.build +++ b/src/tests/meson.build @@ -1,6 +1,9 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2021 Iñigo Martinez +test_env = environment() +test_env.set('ASAN_OPTIONS', 'fast_unwind_on_malloc=0') + test_units = { 'at-serial-port': libport_dep, 'cbm-part': libhelpers_dep, @@ -47,7 +50,7 @@ foreach test_unit, test_deps: test_units c_args: c_args, ) - test(test_name, exe) + test(test_name, exe, suite: 'daemon', env: test_env) endforeach # base call test @@ -59,7 +62,7 @@ exe = executable( c_args: c_args, ) -test('test-base-call', exe) +test('test-base-call', exe, suite: 'daemon', env: test_env) if get_option('fuzzer')