diff --git a/meson.build b/meson.build index f7671634..ec0535a6 100644 --- a/meson.build +++ b/meson.build @@ -285,16 +285,18 @@ if get_option('tests').enabled() message('valgrind not found, disabling valgrind test suite') endif - env = environment() - env.set('MESON_SOURCE_ROOT', meson.current_source_dir()) - env.set('LD_LIBRARY_PATH', fs.parent(lib_libwacom.full_path())) - pymod.find_installation(modules: ['libevdev', 'pyudev', 'pytest']) - pytest = find_program('pytest-3', 'pytest') - test('pytest', - pytest, - args: ['--verbose', '--log-level=DEBUG', meson.current_source_dir()], - env: env, - suite: ['all']) + if get_option('b_sanitize') == 'none' + env = environment() + env.set('MESON_SOURCE_ROOT', meson.current_source_dir()) + env.set('LD_LIBRARY_PATH', fs.parent(lib_libwacom.full_path())) + pymod.find_installation(modules: ['libevdev', 'pyudev', 'pytest']) + pytest = find_program('pytest-3', 'pytest') + test('pytest', + pytest, + args: ['--verbose', '--log-level=DEBUG', '-k', 'test_svg', meson.current_source_dir()], + env: env, + suite: ['all']) + endif endif # This is a non-optional test diff --git a/test/conftest.py b/test/conftest.py index bde94112..ae6082ed 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -14,9 +14,6 @@ def load_test_db() -> WacomDatabase: - if any(os.environ.get(v) for v in ["ASAN_OPTIONS", "UBSAN_OPTIONS"]): - pytest.skip("ASAN/UBSAN not supported in this module") - try: dbpath = os.environ.get("MESON_SOURCE_ROOT") if dbpath is None and (Path.cwd() / "meson.build").exists():