X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FCommand%2FPerl.pm;h=38c238b58ab7e387ca66a8aa49d1d32a5692ad7b;hb=a7f76c8c630e9273e6b8c72f884e7fe012da116e;hp=9178a926ffc558f422b2e5e232685200d09fb91a;hpb=08860dad1f820cce06758ec4add9353a4dbc8175;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Command/Perl.pm b/lib/Test/Valgrind/Command/Perl.pm index 9178a92..38c238b 100644 --- a/lib/Test/Valgrind/Command/Perl.pm +++ b/lib/Test/Valgrind/Command/Perl.pm @@ -9,11 +9,11 @@ Test::Valgrind::Command::Perl - A Test::Valgrind command that invokes perl. =head1 VERSION -Version 1.10 +Version 1.12 =cut -our $VERSION = '1.10'; +our $VERSION = '1.12'; =head1 DESCRIPTION @@ -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 @@ -145,7 +147,7 @@ Returns an L object that sets the environment variables Csanctify( env => { - PERL_DESTRUCT_LEVEL => 2, + PERL_DESTRUCT_LEVEL => 3, PERL_DL_NONLAZY => 1, }, ); @@ -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, @@ -221,7 +224,7 @@ You can find documentation for this module with the perldoc command. =head1 COPYRIGHT & LICENSE -Copyright 2009 Vincent Pit, all rights reserved. +Copyright 2009,2010 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.