tests: Add an address sanitizer suppression file

There are two places where we deliberately leak some memory. There are
some cases which look like leaks in libostree but it's not impossible
that we made a mistake in flatpak.

Two other cases seem like issues in flatpak that I couldn't figure out.
This commit is contained in:
Sebastian Wick 2024-08-01 21:32:30 +02:00 committed by Patrick
parent dad0160eee
commit 5fc86a865c
2 changed files with 11 additions and 1 deletions

10
tests/flatpak-asan.supp Normal file
View File

@ -0,0 +1,10 @@
# GOnce, deliberately leaking once per process
leak:flatpak_get_user_base_dir_location
leak:flatpak_get_system_default_base_dir_location
# external (libostree)
leak:static_delta_part_execute_thread
leak:_ostree_static_delta_part_open
# Bugs in our code
# Take a look at them and try to figure out what's going on!
leak:flatpak_authenticator_request_proxy_new_for_bus_sync
leak:flatpak_authenticator_proxy_new_for_bus_sync

View File

@ -37,7 +37,7 @@ tests_environment_prepend = {
'PATH' : project_build_root / 'app',
}
lsan_options = 'log_threads=1'
lsan_options = 'log_threads=1:suppressions=' + meson.current_source_dir() / 'flatpak-asan.supp'
if get_option('installed_tests')
configure_file(