X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FSuppressions.pm;h=77b99f0bf525e01ac0d898e9e467a186c9a8ad26;hb=edad19c83d762812e54354561857eddd28bc36ae;hp=12c6607155af75585812bc0f1b6aa0136795b556;hpb=41a4b907f4846f2d35b170f517fb83ceb13f298c;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Suppressions.pm b/lib/Test/Valgrind/Suppressions.pm index 12c6607..77b99f0 100644 --- a/lib/Test/Valgrind/Suppressions.pm +++ b/lib/Test/Valgrind/Suppressions.pm @@ -9,11 +9,11 @@ Test::Valgrind::Suppressions - Placeholder for architecture-dependant perl suppr =head1 VERSION -Version 0.01 +Version 0.08 =cut -our $VERSION = '0.01'; +our $VERSION = '0.08'; =head1 DESCRIPTION @@ -21,13 +21,13 @@ L needs suppressions so that perl's errors aren't reported. Howe =head1 FUNCTIONS -=head2 C +=head2 C Returns the path to the suppression file that applies to the current running perl, or C when no such file is available. =cut -sub supppath { +sub supp_path { my $pkg = __PACKAGE__; $pkg =~ s!::!/!g; $pkg .= '.pm'; @@ -37,16 +37,29 @@ sub supppath { return (-f $supp) ? $supp : undef; } +=head1 CONSTANTS + +=head2 C + +The path to the valgrind binary from which the suppressions were generated. + +=cut + +use constant VG_PATH => undef; + =head1 EXPORT -This module exports the L function only on demand, either by giving its name, or by the C<:funcs> or C<:all> tags. +This module exports the L function and the L constants only on demand, either by giving their name explicitely or by the C<:funcs>, C<:consts> or C<:all> tags. =cut use base qw/Exporter/; our @EXPORT = (); -our %EXPORT_TAGS = ( 'funcs' => [ qw/supppath/ ] ); +our %EXPORT_TAGS = ( + 'funcs' => [ qw/supp_path/ ], + 'consts' => [ qw/VG_PATH/ ] +); our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS; $EXPORT_TAGS{'all'} = [ @EXPORT_OK ]; @@ -58,7 +71,7 @@ L. Vincent Pit, C<< >>, L. -You can contact me by mail or on #perl @ FreeNode (vincent or Prof_Vince). +You can contact me by mail or on C (vincent). =head1 BUGS @@ -72,10 +85,9 @@ You can find documentation for this module with the perldoc command. =head1 COPYRIGHT & LICENSE -Copyright 2008 Vincent Pit, all rights reserved. +Copyright 2008-2009 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. +This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut