X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind.pm;h=a1f2e3231e3a77f4f4ef80ac8834d58140789e18;hb=b62067c81672ff40a3fcda54cb498feae33b752f;hp=b4a2b84fbac888f3be5d5781f8fe4afc0c79a888;hpb=3aff25a7a85cc4462aa3d144dced7cd8b1bea0f7;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind.pm b/lib/Test/Valgrind.pm index b4a2b84..a1f2e32 100644 --- a/lib/Test/Valgrind.pm +++ b/lib/Test/Valgrind.pm @@ -9,11 +9,11 @@ Test::Valgrind - Generate suppressions, analyse and test any command with valgri =head1 VERSION -Version 1.11 +Version 1.14 =cut -our $VERSION = '1.11'; +our $VERSION = '1.14'; =head1 SYNOPSIS @@ -49,7 +49,9 @@ As such, it's complementary to the other very good leak detectors listed in the =head1 METHODS -=head2 C +=head2 C + + Test::Valgrind->analyse(%options); Run a C analysis configured by C<%options> : @@ -106,11 +108,11 @@ Ignored if you supply your own custom C, otherwise defaults to false. =item * -C<< extra_supps => \@files >> +C<< regen_def_supp => $bool >> -Also use suppressions from C<@files> besides C's. +If true, forcefully regenerate the default suppression file. -Defaults to empty. +Defaults to false. =item * @@ -120,6 +122,14 @@ If true, do not use the default suppression file. Defaults to false. +=item * + +C<< extra_supps => \@files >> + +Also use suppressions from C<@files> besides C's. + +Defaults to empty. + =back =cut @@ -166,7 +176,7 @@ sub analyse { my $sess = eval { Test::Valgrind::Session->new( min_version => $tool->requires_version, - map { $_ => delete $args{$_} } qw/extra_supps no_def_supp/ + map { $_ => delete $args{$_} } qw ); }; unless ($sess) { @@ -194,7 +204,9 @@ sub analyse { return $status; } -=head2 C +=head2 C + + use Test::Valgrind %options; In the parent process, L calls L with the arguments it received itself - except that if no C option was supplied, it tries to pick the first caller context that looks like a script. When the analysis ends, it exits with the status returned by the action (for the default TAP-generator action, it's the number of failed tests). @@ -361,11 +373,15 @@ RafaEl Garcia-Suarez, for writing and instructing me about the existence o H.Merijn Brand, for daring to test this thing. +David Cantrell, for providing shell access to one of his smokers where the tests were failing. + +The Debian-perl team, for offering all the feedback they could regarding the build issues they met. + All you people that showed interest in this module, which motivated me into completely rewriting it. =head1 COPYRIGHT & LICENSE -Copyright 2008-2009 Vincent Pit, all rights reserved. +Copyright 2008,2009,2010,2011,2013 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.