From: Vincent Pit Date: Tue, 3 Nov 2009 13:26:08 +0000 (+0100) Subject: Also strip the (new) tail after cutting the suppression at Perl_runops X-Git-Tag: v1.12~5 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=a3ad5e451c03ec48ca43d1d2f7761c07490b9d65;p=perl%2Fmodules%2FTest-Valgrind.git Also strip the (new) tail after cutting the suppression at Perl_runops --- diff --git a/lib/Test/Valgrind/Command/Perl.pm b/lib/Test/Valgrind/Command/Perl.pm index 2a8e2a4..6dda0e8 100644 --- a/lib/Test/Valgrind/Command/Perl.pm +++ b/lib/Test/Valgrind/Command/Perl.pm @@ -24,6 +24,8 @@ It handles the suppression generation and sets the main command-line flags. use Env::Sanctify (); +use Test::Valgrind::Suppressions; + use base qw/Test::Valgrind::Command Test::Valgrind::Carp/; =head1 METHODS @@ -176,7 +178,8 @@ sub filter { or not $report->isa('Test::Valgrind::Report::Suppressions'); my $data = $report->data; - $data =~ s/^[^\r\n]*\bPerl_runops_(?:standard|debug)\b.*//ms; + $data =~ s/[^\r\n]*\bPerl_runops_(?:standard|debug)\b.*//s; + $data = Test::Valgrind::Suppressions->strip_tail($session, $data); $report->new( id => $report->id,