]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/commitdiff
Quote "$]" to work around a bug in old perls
authorVincent Pit <vince@profvince.com>
Sat, 24 Aug 2013 17:48:52 +0000 (14:48 -0300)
committerVincent Pit <vince@profvince.com>
Sat, 24 Aug 2013 17:48:52 +0000 (14:48 -0300)
t/50-num_buff/LENGTH.t
t/70-threads/threads.t

index 957b39edb473c28bb94d2cdb6423718852b6488f..07847839f554b26b86f759a15c7f6fd3551d443b 100644 (file)
@@ -1,5 +1,6 @@
 use strict;
-use Test::More $] < 5.011 ? (tests => 7) : (skip_all => 'Not working in blead');
+use Test::More "$]" < 5.011 ? (tests => 7)
+                            : (skip_all => 'Not working in blead');
 
 use re::engine::Plugin (
     exec => sub {
index d85ffda76a08cb1a0b01b70fc8217dfd900a2386..19fc7b7faf0c24075a1bb36ecdaeaa6b875483ae 100644 (file)
@@ -18,7 +18,7 @@ BEGIN {
  skipall 'This perl wasn\'t built to support threads'
                                                     unless $Config{useithreads};
  skipall 'perl 5.13.4 required to test thread safety'
-                                                unless $force or $] >= 5.013004;
+                                              unless $force or "$]" >= 5.013004;
  skipall "threads $t_v required to test thread safety"
                                               unless eval "use threads $t_v; 1";
  skipall "threads::shared $ts_v required to test thread safety"