From: Vincent Pit Date: Tue, 22 Sep 2009 11:42:03 +0000 (+0200) Subject: Action::Test->abort should use the $msg it receives at its second argument X-Git-Tag: v1.10~4 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=9da4ddc479c87b233cc7b2b182ca83c545f57065;p=perl%2Fmodules%2FTest-Valgrind.git Action::Test->abort should use the $msg it receives at its second argument --- diff --git a/lib/Test/Valgrind/Action/Test.pm b/lib/Test/Valgrind/Action/Test.pm index 182f282..48d5906 100644 --- a/lib/Test/Valgrind/Action/Test.pm +++ b/lib/Test/Valgrind/Action/Test.pm @@ -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; }