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 >>
$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
));
} 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;
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"
));
}
$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: $!");
}