From: Karen Etheridge Date: Tue, 19 May 2015 16:44:56 +0000 (-0700) Subject: $B::C::VERSION is not always defined (RT#104510) X-Git-Tag: v0.15~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=99bf1609e7349961f4f4d867bd82873d3840aeb2;p=p5sagit%2FSub-Name.git $B::C::VERSION is not always defined (RT#104510) --- diff --git a/Changes b/Changes index 403e78c..c294f9a 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for Sub-Name {{$NEXT}} + - fix uninitialized warning in test on perls < 5.8.6 (RT#104510) 0.14 2015-04-24 03:26:54Z - remove mandatory dependencies for optional test diff --git a/t/RT96893_perlcc.t b/t/RT96893_perlcc.t index 6a35357..928a8a4 100644 --- a/t/RT96893_perlcc.t +++ b/t/RT96893_perlcc.t @@ -6,7 +6,7 @@ use Test::More 0.88; plan skip_all => 'B::C required for testing perlcc -O3' unless eval "require B::C;"; -plan skip_all => "B::C is too old (require 1.48, have $B::C::VERSION)" +plan skip_all => 'B::C is too old (require 1.48, have ' . ($B::C::VERSION || 'undef') . ')' unless eval { B::C->VERSION('1.48') }; plan skip_all => 'Devel::CheckBin required for looking for a perlcc executable'