From: Matthias Clasen Date: Tue, 6 Jun 2023 01:15:31 +0000 (-0400) Subject: ci: Disable headless tests under asan X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~179^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=baaa7482489b0f7446ef1e0130e527a169c43b0c;p=gtk4.git ci: Disable headless tests under asan Our use of LD_PRELOAD for these tests does not sit right with asan, so just skip them in this case. --- diff --git a/testsuite/headless/meson.build b/testsuite/headless/meson.build index 21aaa10f45..1c9b5f5a78 100644 --- a/testsuite/headless/meson.build +++ b/testsuite/headless/meson.build @@ -7,14 +7,17 @@ env.prepend('LD_PRELOAD', project_build_root / 'gtk' / 'libgtk-4.so') env.prepend('MESON_CURRENT_SOURCE_DIR', meson.current_source_dir()) env.prepend('MESON_CURRENT_BUILD_DIR', meson.current_build_dir()) -test('monitor', - find_program('run-headless-monitor-tests.sh', dirs: meson.current_source_dir()), - suite: ['headless'], - env: env, -) +# asan does not work with our use of LD_PRELOAD for these tests +if get_option('b_sanitize') != 'address' + test('monitor', + find_program('run-headless-monitor-tests.sh', dirs: meson.current_source_dir()), + suite: ['headless'], + env: env, + ) -test('input', - find_program('run-headless-input-tests.sh', dirs: meson.current_source_dir()), - suite: ['headless'], - env: env, -) + test('input', + find_program('run-headless-input-tests.sh', dirs: meson.current_source_dir()), + suite: ['headless'], + env: env, + ) +endif