Skip to content

Commit a20089d

Browse files
committed
Add suppression file.
1 parent 72a18c3 commit a20089d

2 files changed

Lines changed: 76 additions & 1 deletion

File tree

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Rake::TestTask.new(:test, &test_config)
2929
task test: :compile
3030

3131
namespace :test do
32-
RubyMemcheck.config(binary_name: "gettextpo/gettextpo")
32+
RubyMemcheck.config(binary_name: "gettextpo/gettextpo",
33+
valgrind_generate_suppressions: true)
3334
RubyMemcheck::TestTask.new(valgrind: :compile, &test_config)
3435
end
3536

suppressions/ruby.supp

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
po_message_check_all
3+
Memcheck:Leak
4+
fun:calloc
5+
...
6+
fun:po_message_check_all
7+
...
8+
}
9+
{
10+
po_file_check_all
11+
Memcheck:Leak
12+
fun:calloc
13+
...
14+
fun:po_file_check_all
15+
...
16+
}
17+
{
18+
po_file_read_v3
19+
Memcheck:Leak
20+
fun:malloc
21+
...
22+
fun:po_file_read_v3
23+
...
24+
}
25+
{
26+
po_message_set_msgctxt
27+
Memcheck:Leak
28+
fun:malloc
29+
...
30+
fun:po_message_set_msgctxt
31+
...
32+
}
33+
{
34+
expected init leak (no problem)
35+
Memcheck:Leak
36+
fun:calloc
37+
fun:ruby_xcalloc
38+
...
39+
fun:Init_gettextpo
40+
fun:dln_load
41+
}
42+
{
43+
expected init leak (no problem)
44+
Memcheck:Leak
45+
fun:malloc
46+
fun:ruby_xmalloc
47+
...
48+
fun:Init_gettextpo
49+
fun:dln_load
50+
}
51+
{
52+
Calls po_message_comments, which returns constant string, so we don't have to/cannot free it
53+
Memcheck:Leak
54+
fun:malloc
55+
...
56+
fun:gettextpo_po_message_m_comments
57+
...
58+
}
59+
{
60+
Calls po_message_extracted_comments, which returns constant string, so we don't have to/cannot free it
61+
Memcheck:Leak
62+
fun:malloc
63+
...
64+
fun:gettextpo_po_message_m_extracted_comments
65+
...
66+
}
67+
{
68+
Calls po_file_domain_header, which returns constant string, so we don't have to/cannot free it
69+
Memcheck:Leak
70+
fun:malloc
71+
...
72+
fun:gettextpo_po_file_m_domain_header
73+
...
74+
}

0 commit comments

Comments
 (0)