X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FCommand%2FPerl.pm;h=6e39550e0869264ffa1fb0d14c3c4548910a8bf0;hb=dd7e7df5cf3474dce1f29ee510b1a1659e6751e7;hp=3ded74a587c7ebbbb2f3cf61a4200a3a72b1b493;hpb=a1b4baae74607fbdf8b8ea4d0a09c6220b3ca4ae;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Command/Perl.pm b/lib/Test/Valgrind/Command/Perl.pm index 3ded74a..6e39550 100644 --- a/lib/Test/Valgrind/Command/Perl.pm +++ b/lib/Test/Valgrind/Command/Perl.pm @@ -166,6 +166,22 @@ sub suppressions_tag { return $self->{suppressions_tag}; } +sub filter { + my ($self, $session, $report) = @_; + + return $report if $report->is_diag + or not $report->isa('Test::Valgrind::Report::Suppressions'); + + my $data = $report->data; + $data =~ s/^[^\r\n]*\bPerl_runops_(?:standard|debug)\b.*//ms; + + $report->new( + id => $report->id, + kind => $report->kind, + data => $data, + ); +} + sub DESTROY { my ($self) = @_;