[spice-server,1/3] ci: Separate SPICE specific Valgrind suppression

Submitted by Frediano Ziglio on July 18, 2019, 7:32 a.m.

Details

Message ID 20190718073225.13190-2-fziglio@redhat.com
State Accepted
Commit 911455ba6557f880d8196e704819a97696fb7531
Headers show
Series "Update Valgrind suppression files" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio July 18, 2019, 7:32 a.m.
Previously we add suppression to glib.supp file (suppressions from
Glib).
Keep the glib.supp file pristine and add another file specific
for SPICE.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/tests/Makefile.am         |  2 +-
 server/tests/valgrind/glib.supp  | 39 --------------------------------
 server/tests/valgrind/spice.supp | 38 +++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 40 deletions(-)
 create mode 100644 server/tests/valgrind/spice.supp

Patch hide | download patch | download mbox

diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am
index 26aadd5f1..ccaf5c87c 100644
--- a/server/tests/Makefile.am
+++ b/server/tests/Makefile.am
@@ -1,7 +1,7 @@ 
 NULL =
 
 @VALGRIND_CHECK_RULES@
-VALGRIND_SUPPRESSIONS_FILES = $(srcdir)/valgrind/glib.supp
+VALGRIND_SUPPRESSIONS_FILES = $(srcdir)/valgrind/glib.supp $(srcdir)/valgrind/spice.supp
 EXTRA_DIST =				\
 	$(VALGRIND_SUPPRESSIONS_FILES)	\
 	meson.build			\
diff --git a/server/tests/valgrind/glib.supp b/server/tests/valgrind/glib.supp
index ca0684d6c..9236b3d16 100644
--- a/server/tests/valgrind/glib.supp
+++ b/server/tests/valgrind/glib.supp
@@ -543,42 +543,3 @@ 
 	...
 	fun:g_object_new_valist
 }
-
-{
-	px_proxy_factory_get_proxies
-	Memcheck:Leak
-	fun:malloc
-	fun:tls_get_addr_tail
-	...
-	fun:px_proxy_factory_get_proxies
-}
-
-{
-	px_proxy_factory_get_proxies2
-	Memcheck:Leak
-	fun:malloc
-	...
-	fun:__tls_get_addr
-	...
-	fun:px_proxy_factory_get_proxies
-}
-
-{
-	gnutls_tls_rnd_leak
-	Memcheck:Leak
-	fun:malloc
-	...
-	fun:__tls_get_addr
-	...
-	fun:gnutls_rnd
-}
-
-{
-	gnutls_tls_p11_kit_leak
-	Memcheck:Leak
-	fun:malloc
-	...
-	fun:__tls_get_addr
-	...
-	fun:p11_kit_modules_load
-}
diff --git a/server/tests/valgrind/spice.supp b/server/tests/valgrind/spice.supp
new file mode 100644
index 000000000..1bfe81006
--- /dev/null
+++ b/server/tests/valgrind/spice.supp
@@ -0,0 +1,38 @@ 
+{
+	px_proxy_factory_get_proxies
+	Memcheck:Leak
+	fun:malloc
+	fun:tls_get_addr_tail
+	...
+	fun:px_proxy_factory_get_proxies
+}
+
+{
+	px_proxy_factory_get_proxies2
+	Memcheck:Leak
+	fun:malloc
+	...
+	fun:__tls_get_addr
+	...
+	fun:px_proxy_factory_get_proxies
+}
+
+{
+	gnutls_tls_rnd_leak
+	Memcheck:Leak
+	fun:malloc
+	...
+	fun:__tls_get_addr
+	...
+	fun:gnutls_rnd
+}
+
+{
+	gnutls_tls_p11_kit_leak
+	Memcheck:Leak
+	fun:malloc
+	...
+	fun:__tls_get_addr
+	...
+	fun:p11_kit_modules_load
+}