=head1 VERSION
-Version 1.12
+Version 1.14
=cut
-our $VERSION = '1.12';
+our $VERSION = '1.14';
=head1 DESCRIPTION
use Test::Valgrind::Suppressions;
-use base qw/Test::Valgrind::Command Test::Valgrind::Carp/;
+use base qw<Test::Valgrind::Command Test::Valgrind::Carp>;
=head1 METHODS
This class inherits L<Test::Valgrind::Command>.
-=head2 C<< new perl => $^X, inc => \@INC, taint_mode => $taint_mode, ... >>
+=head2 C<new>
+
+ my $tvcp = Test::Valgrind::Command::Perl->new(
+ perl => $^X,
+ inc => \@INC,
+ taint_mode => $taint_mode,
+ %extra_args,
+ );
The package constructor, which takes several options :
=head2 C<perl>
+ my $perl = $tvcp->perl;
+
Read-only accessor for the C<perl> option.
=cut
=head2 C<inc>
+ my @inc = $tvcp->inc;
+
Read-only accessor for the C<inc> option.
=cut
=head2 C<taint_mode>
+ my $taint_mode = $tvcp->taint_mode;
+
Read-only accessor for the C<taint_mode> option.
=cut
$self->SUPER::args(@_);
}
-=head2 C<env $session>
+=head2 C<env>
+
+ my $env = $tvcp->env($session);
Returns an L<Env::Sanctify> object that sets the environment variables C<PERL_DESTRUCT_LEVEL> to C<3> and C<PERL_DL_NONLAZY> to C<1> during the run.
=head1 COPYRIGHT & LICENSE
-Copyright 2009,2010 Vincent Pit, all rights reserved.
+Copyright 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.
XSLoader::load('Test::Valgrind', $Test::Valgrind::VERSION);
};
-unless ($@) {
- Test::Valgrind::notleak("valgrind it!");
-} else {
+if ($@) {
diag $@;
*Test::Valgrind::DEBUGGING = sub { 'unknown' };
+} else {
+ Test::Valgrind::notleak("valgrind it!");
}
plan tests => 1;
{
package Test::Valgrind::Test::Fake;
- use base qw/strict/;
+ use base qw<strict>;
}
-eval 'use Time::HiRes qw/usleep/';
+eval 'use Time::HiRes qw<usleep>';