]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Make sure t/20-bad.t does no extra checks when no valgrind was found
authorVincent Pit <perl@profvince.com>
Sat, 31 Oct 2015 11:20:34 +0000 (09:20 -0200)
committerVincent Pit <perl@profvince.com>
Sat, 31 Oct 2015 11:20:34 +0000 (09:20 -0200)
t/lib/Test/Valgrind/Test/Action.pm

index 07ffde59fbab891d8a7770b488c810a8f76205f3..3f9c0c7bea7632e3ae3cd07d01eb7c7fc7e2bd14 100644 (file)
@@ -18,6 +18,7 @@ BEGIN {
  } else {
   $extra_tests = 3;
   *report = *report_smart;
+  *abort  = *abort_smart;
  }
 }
 
@@ -60,6 +61,14 @@ sub report_smart {
  $self->SUPER::report($sess, $report);
 }
 
+sub abort_smart {
+ my $self = shift;
+
+ $extra_tests = 0;
+
+ $self->SUPER::abort(@_);
+}
+
 sub DESTROY {
  return unless $extra_tests;