From d0614859cf44693b42d4aa8bce7ed28c0a3a3fbb Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Fri, 1 Nov 2019 09:17:57 +0000 Subject: [PATCH] ci: Fix for test-listen leak detection This suppression was present in former glib.supp version however the suppression in glib.supp was updated to only catch "reachable" leaks. However in test-listen test the allocation is done in a thread causing the leak to become "definite". Signed-off-by: Frediano Ziglio Acked-by: Uri Lublin --- server/tests/valgrind/spice.supp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/server/tests/valgrind/spice.supp b/server/tests/valgrind/spice.supp index 284833a7..d96b8423 100644 --- a/server/tests/valgrind/spice.supp +++ b/server/tests/valgrind/spice.supp @@ -56,3 +56,16 @@ ... fun:g_socket_client_class_init } + +# One-time getaddrinfo() configuration loading +{ + g-threaded-resolver-getaddrinfo-config2 + Memcheck:Leak + match-leak-kinds:reachable,definite + fun:malloc + ... + fun:__resolv_conf_allocate + ... + fun:getaddrinfo + fun:do_lookup_by_name +}