]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Also strip the (new) tail after cutting the suppression at Perl_runops
authorVincent Pit <vince@profvince.com>
Tue, 3 Nov 2009 13:26:08 +0000 (14:26 +0100)
committerVincent Pit <vince@profvince.com>
Tue, 3 Nov 2009 13:26:08 +0000 (14:26 +0100)
lib/Test/Valgrind/Command/Perl.pm

index 2a8e2a41286eaa54002c4d33b0342bb00a3fbd69..6dda0e8b9a604c88917ebfd20243b843ca730c68 100644 (file)
@@ -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,