Skip to content

Commit 12eca8a

Browse files
committed
added valgrind.suppress to suppress false positives reported by valgrind.
1 parent 269a7dd commit 12eca8a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

t/SRegex.pm

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ sub run_test ($) {
7676

7777
if ($UseValgrind) {
7878
warn "$name\n";
79-
@cmd = ('valgrind', '-q', '--leak-check=full', @cmd);
79+
@cmd = ('valgrind', '--gen-suppressions=all',
80+
'--suppressions=valgrind.suppress',
81+
'--show-possibly-lost=no', '-q', '--leak-check=full', @cmd);
8082
}
8183

8284
run3 \@cmd, \$stdin, \$res, \$err;

valgrind.suppress

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
<insert_a_suppression_name_here>
3+
Memcheck:Cond
4+
fun:index
5+
fun:expand_dynamic_string_token
6+
fun:_dl_map_object
7+
fun:map_doit
8+
fun:_dl_catch_error
9+
fun:do_preload
10+
fun:dl_main
11+
}

0 commit comments

Comments
 (0)