[gnumeric] tests: add suppression file for valgrinds supporting ...



commit 2031283982025c3e6773784cbe24a74df06f5bf5
Author: Morten Welinder <terra gnome org>
Date:   Fri Nov 27 20:18:23 2009 -0500

    tests: add suppression file for valgrinds supporting ...

 test/GnumericTest.pm |   10 ++
 test/Makefile.am     |    2 +-
 test/common.supp     |  236 ++++++++++++++++++++++---------------------------
 test/commondots.supp |   65 ++++++++++++++
 4 files changed, 182 insertions(+), 131 deletions(-)
---
diff --git a/test/GnumericTest.pm b/test/GnumericTest.pm
index 79d0fb2..ccf91f0 100644
--- a/test/GnumericTest.pm
+++ b/test/GnumericTest.pm
@@ -316,12 +316,22 @@ sub test_valgrind {
     &report_skip ("Valgrind is not available") unless defined $valhelp;
     die "Problem running valgrind.\n" unless $valhelp =~ /log-file/;
 
+    my $valvers = `valgrind --version`;
+    die "Problem running valgrind.\n"
+	unless $valvers =~ /^valgrind-(\d+)\.(\d+)\.(\d+)$/;
+    $valvers = $1 * 10000 + $2 * 100 + $3;
+
     $cmd = "--gen-suppressions=all $cmd";
     {
 	my $suppfile = "common.supp";
 	$cmd = "--suppressions=$suppfile $cmd" if -r $suppfile;
     }
 
+    if ($valvers >= 30500) {
+	my $suppfile = "commondots.supp";
+	$cmd = "--suppressions=$suppfile $cmd" if -r $suppfile;
+    }
+
     {
 	my $suppfile = $0;
 	$suppfile =~ s/\.pl$/.supp/;
diff --git a/test/Makefile.am b/test/Makefile.am
index ebf68ff..f022682 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -24,7 +24,7 @@
 # 90xx: Misc stuff.
 
 TESTS = $(wildcard $(srcdir)/t[0-9][0-9][0-9][0-9]-*.pl)
-SUPPS = common.supp gui.supp t8003-valgrind-pdf.supp
+SUPPS = common.supp commondots.supp gui.supp t8003-valgrind-pdf.supp
 
 import-db:
 	for t in $(srcdir)/t5[0-9][0-9][0-9]-*.pl; do echo "*** $$t ***"; $(PERL) $$t create-db; done
diff --git a/test/common.supp b/test/common.supp
index 5df69f7..e8fb193 100644
--- a/test/common.supp
+++ b/test/common.supp
@@ -293,136 +293,6 @@
 }
 
 {
-   Leak/g_type_register_static
-   Memcheck:Leak
-   fun:calloc
-   fun:g_malloc0
-   fun:type_data_make_W
-   fun:g_type_register_static
-}
-
-{
-   Leak/g_type_register_static2
-   Memcheck:Leak
-   fun:malloc
-   fun:realloc
-   fun:g_realloc
-   fun:type_node_any_new_W
-   fun:type_node_new_W
-   fun:g_type_register_static
-}
-
-{
-   Leak/g_type_register_static2a
-   Memcheck:Leak
-   fun:realloc
-   fun:g_realloc
-   fun:type_node_any_new_W
-   fun:type_node_new_W
-   fun:g_type_register_static
-}
-
-{
-   Leak/g_type_register_static3
-   Memcheck:Leak
-   fun:malloc
-   fun:realloc
-   fun:g_realloc
-   fun:type_add_flags_W
-   fun:g_type_register_static
-}
-
-{
-   Leak/g_type_register_fundamental
-   Memcheck:Leak
-   fun:calloc
-   fun:g_malloc0
-   fun:type_add_flags_W
-   fun:g_type_register_fundamental
-}
-
-{
-   Leak/g_type_register_fundamental2
-   Memcheck:Leak
-   fun:malloc
-   fun:realloc
-   fun:g_realloc
-   fun:type_add_flags_W
-   fun:g_type_register_fundamental
-}
-
-{
-   Leak/g_type_register_fundamental3
-   Memcheck:Leak
-   fun:calloc
-   fun:g_malloc0
-   fun:type_data_make_W
-   fun:g_type_register_fundamental
-}
-
-{
-   Leak/g_type_register_fundamental4
-   Memcheck:Leak
-   fun:calloc
-   fun:g_malloc0
-   fun:type_node_any_new_W
-   fun:type_node_fundamental_new_W
-   fun:g_type_register_fundamental
-}
-
-{
-   Leak/g_type_init_with_debug_flags
-   Memcheck:Leak
-   fun:calloc
-   fun:g_malloc0
-   fun:type_data_make_W
-   fun:g_type_init_with_debug_flags
-}
-
-# Probably not leaked, but cached.
-{
-   Leak/pango_ot_ruleset_init
-   Memcheck:Leak
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_array_sized_new
-   fun:g_array_new
-   fun:pango_ot_ruleset_init
-}
-
-# Probably not leaked, but cached.
-{
-   Leak/pango_ot_ruleset_add_feature
-   Memcheck:Leak
-   fun:realloc
-   fun:g_realloc
-   fun:g_array_maybe_expand
-   fun:g_array_append_vals
-   fun:pango_ot_ruleset_add_feature
-}
-
-# Probably not leaked, but cached.
-{
-   Leak/pango_ot_ruleset_maybe_add_feature
-   Memcheck:Leak
-   fun:realloc
-   fun:g_realloc
-   fun:pango_ot_ruleset_maybe_add_feature
-}
-
-# Probably not leaked, but cached.
-{
-   Leak/pango_ot_ruleset_new_for
-   Memcheck:Leak
-   fun:malloc
-   fun:g_malloc
-   fun:g_type_create_instance
-   fun:g_object_constructor
-   fun:pango_ot_ruleset_new_for
-}
-
-{
    Leak/gnm_pre_parse_init/g_set_prgname
    Memcheck:Leak
    fun:malloc
@@ -475,6 +345,20 @@
 }
 
 {
+   Leak/FcPatternObjectInsertElt2
+   Memcheck:Leak
+   fun:realloc
+   fun:FcPatternObjectInsertElt
+}
+
+{
+   Leak/FcPatternObjectAddWithBinding
+   Memcheck:Leak
+   fun:malloc
+   fun:FcPatternObjectAddWithBinding
+}
+
+{
    Leak/font-config/XML_ParseBuffer
    Memcheck:Leak
    fun:malloc
@@ -562,6 +446,24 @@
 }
 
 {
+   Leak/pango_find_map2
+   Memcheck:Leak
+   fun:calloc
+   fun:g_malloc0
+   fun:g_type_class_ref
+   fun:pango_find_map
+}
+
+{
+   Leak/pango_find_map3
+   Memcheck:Leak
+   fun:malloc
+   fun:g_malloc
+   fun:g_strdup
+   fun:pango_find_map
+}
+
+{
    Leak/giop_connection_class_init
    Memcheck:Leak
    fun:calloc
@@ -573,3 +475,77 @@
    fun:g_param_spec_pointer
    fun:giop_connection_class_init
 }
+
+{
+   Leak/giop_connection_class_init2
+   Memcheck:Leak
+   fun:calloc
+   fun:g_malloc0
+   fun:g_type_class_ref
+   fun:g_type_create_instance
+   fun:g_param_spec_internal
+   fun:g_param_spec_pointer
+   fun:giop_connection_class_init
+}
+
+{
+   Leak/dbus
+   Memcheck:Leak
+   fun:malloc
+   fun:dbus_malloc
+}
+
+{
+   Leak/dbus2
+   Memcheck:Leak
+   fun:realloc
+   fun:dbus_realloc
+}
+
+{
+   Leak/ft_alloc
+   Memcheck:Leak
+   fun:malloc
+   fun:ft_alloc
+}
+
+{
+   Leak/ft_realloc
+   Memcheck:Leak
+   fun:realloc
+   fun:ft_realloc
+}
+
+{
+   Leak/FT_Outline_Decompose
+   Memcheck:Leak
+   fun:malloc
+   fun:_cairo_path_buf_create
+   fun:_cairo_path_fixed_add
+   fun:_cairo_path_fixed_curve_to
+   fun:_conic_to
+   fun:FT_Outline_Decompose
+}
+
+ {
+   Leak/pango_ot_info_get
+   Memcheck:Leak
+   fun:realloc
+   fun:_hb_ot_layout_set_glyph_class
+   fun:hb_ot_layout_build_glyph_classes
+   fun:pango_ot_info_get
+}
+
+{
+   Leak/_cairo_cache_create
+   Memcheck:Leak
+   fun:malloc
+   fun:_cairo_cache_create
+}
+
+{
+   Leak/_cairo_hash_table_create
+   Memcheck:Leak
+   fun:?alloc
+   fun:_cairo_hash_table_create
+}
diff --git a/test/commondots.supp b/test/commondots.supp
new file mode 100644
index 0000000..c654006
--- /dev/null
+++ b/test/commondots.supp
@@ -0,0 +1,65 @@
+{
+   Leak/pango_layout_check_lines
+   Memcheck:Leak
+   ...
+   fun:pango_layout_check_lines
+}
+
+{
+   Leak/_cairo_scaled_glyph_lookup
+   Memcheck:Leak
+   ...
+   fun:_cairo_scaled_glyph_lookup
+}
+
+{
+   Leak/cairo_show_glyphs
+   Memcheck:Leak
+   ...
+   fun:cairo_show_glyphs
+}
+
+{
+   Leak/g_type_register_fundamental
+   Memcheck:Leak
+   ...
+   fun:g_type_register_fundamental
+}
+
+{
+   Leak/g_type_register_static
+   Memcheck:Leak
+   ...
+   fun:g_type_register_static
+}
+
+{
+   Leak/g_type_init_with_debug_flags
+   Memcheck:Leak
+   ...
+   fun:g_type_init_with_debug_flags
+}
+
+
+{
+   Leak/g_bookmark_file_load_from_data
+   Memcheck:Leak
+   ...
+   fun:g_bookmark_file_load_from_data
+}
+
+# Probably not leaked, but cached.
+{
+   Leak/pango_ot_ruleset_...
+   Memcheck:Leak
+   ...
+   fun:pango_ot_ruleset_*
+}
+
+{
+   glibc_write_fseeko64
+   Memcheck:Param
+   write(buf)
+   ...
+   fun:fseeko64
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]