]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind/Action/Test.pm
Action::Test->abort should use the $msg it receives at its second argument
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind / Action / Test.pm
index 182f2822605d1859f09d96221a475dbfd9de33a5..48d5906636f2247348ae4f484479e245bd5a6998 100644 (file)
@@ -110,10 +110,10 @@ sub abort {
  my $tb = Test::Builder->new;
  my $plan = $tb->has_plan;
  if (defined $plan) {
-  $tb->BAIL_OUT($@);
+  $tb->BAIL_OUT($msg);
   $self->{status} = 255;
  } else {
-  $tb->skip_all($@);
+  $tb->skip_all($msg);
   $self->{status} = 0;
  }