From 439d5fb554f962ed8fed668d1f085b313372e026 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 28 Nov 2016 17:24:02 +0100 Subject: [PATCH] leak tests: Add various suppressions to make most non-flatpak things go away --- tests/flatpak.supp | 107 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/tests/flatpak.supp b/tests/flatpak.supp index e07f6631..548fbf84 100644 --- a/tests/flatpak.supp +++ b/tests/flatpak.supp @@ -1,4 +1,12 @@ # Use this to suppress "possibly lost" for global statics +{ + handle_reflink + Memcheck:Param + ioctl(generic) + fun:ioctl + fun:btrfs_reflink_with_progress + fun:file_copy_fallback +} # https://github.com/ostreedev/ostree/issues/533 { @@ -11,3 +19,102 @@ fun:g_output_stream_splice fun:ostree_repo_static_delta_generate } + +# There seem to be some leaks in "ostree pull", lets just ignore them for now +{ + ignore_ostree_pull1 + Memcheck:Leak + fun:malloc + ... + fun:ostree_fetcher_session_thread +} +{ + ignore_ostree_pull2 + Memcheck:Leak + fun:realloc + ... + fun:ostree_fetcher_session_thread +} +{ + ignore_ostree_pull3 + Memcheck:Leak + fun:malloc + ... + fun:ostree_repo_write_metadata_async +} +{ + ignore_ostree_pull4 + Memcheck:Leak + fun:calloc + ... + fun:ostree_repo_write_metadata_async +} +{ + ignore_ostree_pull5 + Memcheck:Leak + fun:malloc + ... + fun:write_metadata_thread +} +{ + ignore_ostree_pull6 + Memcheck:Leak + fun:calloc + ... + fun:write_metadata_thread +} +# static delta generation seem to leak too... +{ + ignore_ostree_delta1 + Memcheck:Leak + fun:malloc + ... + fun:generate_delta_thread +} +{ + ignore_ostree_delta2 + Memcheck:Leak + fun:calloc + ... + fun:generate_delta_thread +} +{ + ignore_ostree_delta3 + Memcheck:Leak + fun:realloc + ... + fun:generate_delta_thread +} +# writing content... +{ + ignore_ostree_write_content1 + Memcheck:Leak + fun:g_type_create_instance + ... + fun:write_content_thread +} +{ + ignore_ostree_write_content2 + Memcheck:Leak + fun:malloc + ... + fun:write_content_thread +} +{ + ignore_ostree_write_content3 + Memcheck:Leak + fun:malloc + ... + fun:ostree_repo_write_content_async +} + +# Some glib threadpool issue? +{ + ignore_gthreadpool1 + Memcheck:Leak + fun:calloc + ... + fun:g_idle_source_new + ... + fun:g_thread_pool_thread_proxy +}