]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind/Session.pm
Let the command filter reports
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind / Session.pm
index 3174bdef84d6962962d1457bbf5882405cb0ea05..1e8857e7a4f3f37e8f63108e22427dc62fcf88e1 100644 (file)
@@ -412,8 +412,14 @@ Forwards to C<< ->action->report >> after unshifting the session object to the a
 =cut
 
 sub report {
- my $self = shift;
- $self->action->report($self, @_);
+ my ($self, $report) = @_;
+
+ return unless defined $report;
+
+ $report = $self->command->filter($self, $report);
+ return unless defined $report;
+
+ $self->action->report($self, $report);
 }
 
 =head2 C<finish>