=head1 VERSION
-Version 1.13
+Version 1.17
=cut
-our $VERSION = '1.13';
+our $VERSION = '1.17';
=head1 DESCRIPTION
my %args = @_;
- my $callers = delete $args{callers} || 12;
+ my $callers = delete $args{callers} || 50;
$callers =~ s/\D//g;
my $self = bless $class->Test::Valgrind::Tool::new(%args), $class;
? 'Test::Valgrind::Parser::Suppressions::Text'
: 'Test::Valgrind::Parser::XML::Twig';
- local $@;
- eval "require $class";
+ {
+ local $@;
+ eval "require $class; 1" or die $@;
+ }
return $class;
}
sub report_class {
my ($self, $session) = @_;
- $session->do_suppressions ? 'Test::Valgrind::Report::Suppressions'
- : 'Test::Valgrind::Tool::memcheck::Report'
+ if ($session->do_suppressions) {
+ require Test::Valgrind::Parser::Suppressions::Text;
+ return 'Test::Valgrind::Report::Suppressions';
+ } else {
+ return 'Test::Valgrind::Tool::memcheck::Report';
+ }
}
sub args {
=head1 COPYRIGHT & LICENSE
-Copyright 2009,2010,2011 Vincent Pit, all rights reserved.
+Copyright 2009,2010,2011,2013,2015 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.
use base qw<Test::Valgrind::Report>;
-our $VERSION = '1.13';
+our $VERSION = '1.17';
my @kinds = qw<
InvalidFree