]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Also use the report_class in Session
authorVincent Pit <vince@profvince.com>
Mon, 24 Aug 2009 22:36:05 +0000 (00:36 +0200)
committerVincent Pit <vince@profvince.com>
Mon, 24 Aug 2009 22:36:05 +0000 (00:36 +0200)
lib/Test/Valgrind/Session.pm

index 705e08840c21fe7bc7f1dc1b94f23fbbd391d13f..3583c3db4cc16d1b53f4e146c48712c50995cd8a 100644 (file)
@@ -34,8 +34,6 @@ BEGIN {
 
 use base qw/Test::Valgrind::Carp/;
 
-use Test::Valgrind::Report;
-
 =head1 METHODS
 
 =head2 C<< new search_dirs => \@search_dirs, valgrind => [ $valgrind | \@valgrind ], min_version => $min_version, no_def_supp => $no_def_supp, extra_supps => \@extra_supps >>
@@ -201,7 +199,7 @@ sub _run {
 
  $self->command($cmd);
 
- $self->report(Test::Valgrind::Report->new_diag(
+ $self->report($self->report_class->new_diag(
   'Using valgrind ' . $self->version . ' located at ' . $self->valgrind
  ));
 
@@ -213,7 +211,7 @@ sub _run {
  } elsif (not $self->no_def_supp) {
   my $def_supp = $self->def_supp_file;
   if (defined $def_supp and not -e $def_supp) {
-   $self->report(Test::Valgrind::Report->new_diag(
+   $self->report($self->report_class->new_diag(
     "Generating suppressions..."
    ));
    require Test::Valgrind::Suppressions;
@@ -223,7 +221,7 @@ sub _run {
     target  => $def_supp,
    );
    $self->_croak('Couldn\'t generate suppressions') unless -e $def_supp;
-   $self->report(Test::Valgrind::Report->new_diag(
+   $self->report($self->report_class->new_diag(
     "Suppressions for this perl stored in $def_supp"
    ));
   }
@@ -254,7 +252,7 @@ sub _run {
    $self->command->args($self),
   );
 
-#  $self->report(Test::Valgrind::Report->new_diag("@args"));
+#  $self->report($self->report_class->new_diag("@args"));
 
   exec { $args[0] } @args or $self->_croak("exec @args: $!");
  }