]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Tool::memcheck::args needs to forward its $session argument in the SUPER call
authorVincent Pit <vince@profvince.com>
Mon, 24 Aug 2009 23:00:22 +0000 (01:00 +0200)
committerVincent Pit <vince@profvince.com>
Mon, 24 Aug 2009 23:02:00 +0000 (01:02 +0200)
lib/Test/Valgrind/Tool/memcheck.pm

index 15b65870c7231724e24afc7e57a253c6829e43f6..c93ad2dbd38fa7a6cba2c55acf2468dd073090b7 100644 (file)
@@ -92,7 +92,8 @@ This tool emits C<Test::Valgrind::Tool::memcheck::Report> 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;
 }