ci: Disable headless tests under asan
authorMatthias Clasen <mclasen@redhat.com>
Tue, 6 Jun 2023 01:15:31 +0000 (21:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 6 Jun 2023 01:15:31 +0000 (21:15 -0400)
Our use of LD_PRELOAD for these tests does not
sit right with asan, so just skip them in this
case.

testsuite/headless/meson.build

index 21aaa10f4515663c9eea49318c5393ba62dbb47f..1c9b5f5a789f5eb1ea66001c089b45d78d09e471 100644 (file)
@@ -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