From: Vincent Pit Date: Mon, 24 Aug 2009 23:00:22 +0000 (+0200) Subject: Tool::memcheck::args needs to forward its $session argument in the SUPER call X-Git-Tag: v1.10~24 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=8bd140c3f1dcd8d5f9bdca0ce59b315b75d911cf;p=perl%2Fmodules%2FTest-Valgrind.git Tool::memcheck::args needs to forward its $session argument in the SUPER call --- diff --git a/lib/Test/Valgrind/Tool/memcheck.pm b/lib/Test/Valgrind/Tool/memcheck.pm index 15b6587..c93ad2d 100644 --- a/lib/Test/Valgrind/Tool/memcheck.pm +++ b/lib/Test/Valgrind/Tool/memcheck.pm @@ -92,7 +92,8 @@ This tool emits C object reports in anal sub report_class_analysis { 'Test::Valgrind::Tool::memcheck::Report' } sub args { - my ($self, $sess) = @_; + my $self = shift; + my ($sess) = @_; my @args = ( '--tool=memcheck', @@ -108,7 +109,7 @@ sub args { push @args, '--xml=yes'; } - push @args, $self->SUPER::args(); + push @args, $self->SUPER::args(@_); return @args; }