From c8afe9b8757c7adedfc63762ed1281597e94c23d Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 3 Jan 2024 14:10:03 +0100 Subject: [PATCH] test: temporarily disable test-polkitbackendjsauthority under ASan The test, in its current form, is incompatible with ASan, since it overwrites $LD_PRELOAD and thus preventing ASan to work properly. This can be worked around using `verify_asan_link_order=0`, but this only shifts the problem down the road, as with that ASan is able to run but produces false positive reports since it can't properly incercept calls made to libduktape. --- test/polkitbackend/meson.build | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/test/polkitbackend/meson.build b/test/polkitbackend/meson.build index 9fae1551..fa1b1b32 100644 --- a/test/polkitbackend/meson.build +++ b/test/polkitbackend/meson.build @@ -24,10 +24,14 @@ exe = executable( prog = find_program('polkitbackendjsauthoritytest-wrapper.py') -test( - test_unit, - prog, - env: test_env, - is_parallel: false, - timeout: 90, -) +if not get_option('b_sanitize').split(',').contains('address') + test( + test_unit, + prog, + env: test_env, + is_parallel: false, + timeout: 90, + ) +else + warning('@0@ is not (yet) compatible with AddressSanitizer, skipping'.format(test_unit)) +endif