]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind/Suppressions.pm
Importing Test-Valgrind-0.02.tar.gz
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind / Suppressions.pm
index 12c6607155af75585812bc0f1b6aa0136795b556..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,82 +0,0 @@
-package Test::Valgrind::Suppressions;
-
-use strict;
-use warnings;
-
-=head1 NAME
-
-Test::Valgrind::Suppressions - Placeholder for architecture-dependant perl suppressions.
-
-=head1 VERSION
-
-Version 0.01
-
-=cut
-
-our $VERSION = '0.01';
-
-=head1 DESCRIPTION
-
-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.
-
-=head1 FUNCTIONS
-
-=head2 C<supppath>
-
-Returns the path to the suppression file that applies to the current running perl, or C<undef> when no such file is available.
-
-=cut
-
-sub supppath {
- my $pkg = __PACKAGE__;
- $pkg =~ s!::!/!g;
- $pkg .= '.pm';
- return if not $INC{$pkg};
- my $supp = $INC{$pkg};
- $supp =~ s![^/]*$!perlTestValgrind.supp!;
- return (-f $supp) ? $supp : undef;
-}
-
-=head1 EXPORT
-
-This module exports the L</supppath> function only on demand, either by giving its name, or by the C<:funcs> or C<:all> tags.
-
-=cut
-
-use base qw/Exporter/;
-
-our @EXPORT         = ();
-our %EXPORT_TAGS    = ( 'funcs' =>  [ qw/supppath/ ] );
-our @EXPORT_OK      = map { @$_ } values %EXPORT_TAGS;
-$EXPORT_TAGS{'all'} = [ @EXPORT_OK ];
-
-=head1 SEE ALSO
-
-L<Test::Valgrind>.
-
-=head1 AUTHOR
-
-Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
-
-You can contact me by mail or on #perl @ FreeNode (vincent or Prof_Vince).
-
-=head1 BUGS
-
-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.
-
-=head1 SUPPORT
-
-You can find documentation for this module with the perldoc command.
-
-    perldoc Test::Valgrind::Suppressions
-
-=head1 COPYRIGHT & LICENSE
-
-Copyright 2008 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.
-
-=cut
-
-1; # End of Test::Valgrind::Suppressions