X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FCommand%2FPerl.pm;h=a32c720be4ee753e8eafce2136b17b1bfde4d3c2;hb=9314897b9f4c46057ac5147c0fb4c8fc6dd466a9;hp=6e39550e0869264ffa1fb0d14c3c4548910a8bf0;hpb=dd7e7df5cf3474dce1f29ee510b1a1659e6751e7;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Command/Perl.pm b/lib/Test/Valgrind/Command/Perl.pm index 6e39550..a32c720 100644 --- a/lib/Test/Valgrind/Command/Perl.pm +++ b/lib/Test/Valgrind/Command/Perl.pm @@ -9,19 +9,24 @@ Test::Valgrind::Command::Perl - A Test::Valgrind command that invokes perl. =head1 VERSION -Version 1.01 +Version 1.12 =cut -our $VERSION = '1.01'; +our $VERSION = '1.12'; =head1 DESCRIPTION +This command is the base for all C-based commands. +It handles the suppression generation and sets the main command-line flags. + =cut use Env::Sanctify (); -use base qw/Test::Valgrind::Command Test::Valgrind::Carp/; +use Test::Valgrind::Suppressions; + +use base qw; =head1 METHODS @@ -142,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, }, ); @@ -173,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, @@ -218,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,2011 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. @@ -264,7 +270,7 @@ my @cards = List::Util::shuffle(0 .. 51); { package Test::Valgrind::Test::Fake; - use base qw/strict/; + use base qw; } -eval 'use Time::HiRes qw/usleep/'; +eval 'use Time::HiRes qw';