X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F50-threads.t;h=9c095457ff229fc6e2ac09bba95bcd673913145d;hb=acd04c4caf2a342c115cd053dd5552a9ae2c414a;hp=925b8bb44b04549dfbad85bae5662409788f527c;hpb=f424a623070821112b8dd42506aa772ad19f22bb;p=perl%2Fmodules%2Fautovivification.git diff --git a/t/50-threads.t b/t/50-threads.t index 925b8bb..9c09545 100644 --- a/t/50-threads.t +++ b/t/50-threads.t @@ -9,14 +9,14 @@ sub skipall { Test::More::plan(skip_all => $msg); } -use Config qw/%Config/; +use Config qw<%Config>; BEGIN { my $force = $ENV{PERL_AUTOVIVIFICATION_TEST_THREADS} ? 1 : !1; 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; } use threads; @@ -66,7 +66,7 @@ BEGIN { SKIP: { skip 'Hints aren\'t propagated into eval STRING below perl 5.10' => 3 * 2 - unless $] >= 5.010; + unless "$]" >= 5.010; { my $x; eval 'my $y = $x->{foo}';