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