From 9480df32fe3bb9ee84e8e22750d9f35ae9d4fe0f Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Mon, 25 Nov 2019 10:00:30 +0000 Subject: [PATCH] ci: Disable leak error from Valgrind For some reason under Fedora 31 the g_socket_client_connect call from test-listen test caused Valgrind to detect a leak. Note that the like at gtype.c (g_socket_client_connect) specifically marks a memory block as malloc-like. Not sure if it's an issue with Valgrind or with GLib, as a workaround disable the leak report. Signed-off-by: Frediano Ziglio Acked-by: Uri Lublin --- server/tests/valgrind/spice.supp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/tests/valgrind/spice.supp b/server/tests/valgrind/spice.supp index d96b8423..09305149 100644 --- a/server/tests/valgrind/spice.supp +++ b/server/tests/valgrind/spice.supp @@ -69,3 +69,14 @@ fun:getaddrinfo fun:do_lookup_by_name } + +# g_type_create_instance Valgring malloc annotation, for +# some reason this has issues with Fedora 31 from test-listen test +{ + g_type_create_instance-valgrind + Memcheck:Leak + fun:g_type_create_instance + ... + fun:g_socket_client_connect + fun:fake_client_connect_tls +}