$B::C::VERSION is not always defined (RT#104510)
Karen Etheridge [Tue, 19 May 2015 16:44:56 +0000 (09:44 -0700)]
Changes
t/RT96893_perlcc.t

diff --git a/Changes b/Changes
index 403e78c..c294f9a 100644 (file)
--- 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
index 6a35357..928a8a4 100644 (file)
@@ -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'