From: Vincent Pit Date: Thu, 12 Nov 2015 22:54:55 +0000 (-0200) Subject: Allow specifying 'allow_no_supp' to Test::Valgrind->import X-Git-Tag: v1.16~1 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=commitdiff_plain;h=01d49783af4ec2292a5fe23164bbef36119613e0 Allow specifying 'allow_no_supp' to Test::Valgrind->import --- diff --git a/lib/Test/Valgrind.pm b/lib/Test/Valgrind.pm index 4669b23..9b233c7 100644 --- a/lib/Test/Valgrind.pm +++ b/lib/Test/Valgrind.pm @@ -124,6 +124,14 @@ Defaults to false. =item * +C<< allow_no_supp => $bool >> + +If true, force running the analysis even if the suppression files do not refer to any C-related symbol. + +Defaults to false. + +=item * + C<< extra_supps => \@files >> Also use suppressions from C<@files> besides C's. @@ -220,7 +228,12 @@ sub analyse { my $sess = eval { Test::Valgrind::Session->new( min_version => $tool->requires_version, - map { $_ => delete $args{$_} } qw + map { $_ => delete $args{$_} } qw< + regen_def_supp + no_def_supp + allow_no_supp + extra_supps + > ); }; unless ($sess) {