=head1 VERSION
-Version 1.01
+Version 1.02
=cut
-our $VERSION = '1.01';
+our $VERSION = '1.02';
=head1 DESCRIPTION
sub report_class_analysis { 'Test::Valgrind::Tool::memcheck::Report' }
sub args {
- my ($self, $sess) = @_;
+ my $self = shift;
+ my ($sess) = @_;
my @args = (
'--tool=memcheck',
push @args, '--xml=yes';
}
- push @args, $self->SUPER::args();
+ push @args, $self->SUPER::args(@_);
return @args;
}
sub start {
my ($self, $sess) = @_;
- $self->_croak('This memcheck tool can\'t be run in two sessions at once')
- if $self->_session;
-
$self->SUPER::start($sess);
$self->_session($sess);
use base qw/Test::Valgrind::Report/;
-our $VERSION = '1.01';
+our $VERSION = '1.02';
my @kinds = qw/
InvalidFree
package Test::Valgrind::Tool::memcheck::Twig;
-our $VERSION = '1.01';
+our $VERSION = '1.02';
use Scalar::Util;
$origin->kid('stack')->children('frame') ];
}
- my $report = Test::Valgrind::Tool::memcheck::Report->new(
+ my $tool = $twig->stash->{tool};
+ my $sess = $tool->_session;
+
+ $sess->report($tool->report_class($sess)->new(
kind => $kind,
id => $id,
data => $data,
- );
-
- $twig->stash->{tool}->_session->report($report);
+ ));
$twig->purge;
}
package Test::Valgrind::Tool::memcheck::Twig::Elt;
-our $VERSION = '1.01';
+our $VERSION = '1.02';
BEGIN { require XML::Twig; }