]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Action::Test->abort should use the $msg it receives at its second argument
authorVincent Pit <vince@profvince.com>
Tue, 22 Sep 2009 11:42:03 +0000 (13:42 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 22 Sep 2009 11:42:03 +0000 (13:42 +0200)
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;
  }