1 package Test::Valgrind::Suppressions;
8 Test::Valgrind::Suppressions - Placeholder for architecture-dependant perl suppressions.
16 our $VERSION = '0.01';
20 L<Test::Valgrind> needs suppressions so that perl's errors aren't reported. However, these suppressions depend widely on the architecture, perl's version and the features it has been build with (e.g. threads). The goal of this module is hence to be installed together with the suppression file generated when the Test-Valgrind distribution was built, and to handle back to L<Test::Valgrind> the path to the suppression file.
26 Returns the path to the suppression file that applies to the current running perl, or C<undef> when no such file is available.
31 my $pkg = __PACKAGE__;
34 return if not $INC{$pkg};
35 my $supp = $INC{$pkg};
36 $supp =~ s![^/]*$!perlTestValgrind.supp!;
37 return (-f $supp) ? $supp : undef;
42 This module exports the L</supppath> function only on demand, either by giving its name, or by the C<:funcs> or C<:all> tags.
46 use base qw/Exporter/;
49 our %EXPORT_TAGS = ( 'funcs' => [ qw/supppath/ ] );
50 our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
51 $EXPORT_TAGS{'all'} = [ @EXPORT_OK ];
59 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
61 You can contact me by mail or on #perl @ FreeNode (vincent or Prof_Vince).
65 Please report any bugs or feature requests to C<bug-test-valgrind-suppressions at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
69 You can find documentation for this module with the perldoc command.
71 perldoc Test::Valgrind::Suppressions
73 =head1 COPYRIGHT & LICENSE
75 Copyright 2008 Vincent Pit, all rights reserved.
77 This program is free software; you can redistribute it and/or modify it
78 under the same terms as Perl itself.
82 1; # End of Test::Valgrind::Suppressions