]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Report which suppressions are used by the session
authorVincent Pit <vince@profvince.com>
Fri, 30 Oct 2009 17:29:05 +0000 (18:29 +0100)
committerVincent Pit <vince@profvince.com>
Fri, 30 Oct 2009 17:29:05 +0000 (18:29 +0100)
lib/Test/Valgrind/Session.pm

index b1710e2947acf86b0bf17922ce713fd86dd4462e..27aa97344c3d8b4c474c889e3ce9f06df2843ea5 100644 (file)
@@ -218,7 +218,11 @@ sub _run {
     "Suppressions for this perl stored in $def_supp"
    ));
   }
-  push @supp_args, '--suppressions=' . $_ for $self->suppressions;
+  for ($self->suppressions) {
+   next unless -e $_;
+   $self->report($self->report_class->new_diag("Using suppression file $_"));
+   push @supp_args, "--suppressions=$_";
+  }
  }
 
  pipe my $vrdr, my $vwtr or $self->_croak("pipe(\$vrdr, \$vwtr): $!");