X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2Flib%2FVariable%2FMagic%2FTestThreads.pm;h=f3ebc5d0960f33062af66395fec7c143e9fe0a88;hb=78d307d30a1fa82e6b8e7ba95c617d9b87eb4d45;hp=a846a5abf587fdd71b5e51ef3fda52caf86e93e7;hpb=dee682e232db910b1e38e162ac51b0d98725e40e;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/lib/Variable/Magic/TestThreads.pm b/t/lib/Variable/Magic/TestThreads.pm index a846a5a..f3ebc5d 100644 --- a/t/lib/Variable/Magic/TestThreads.pm +++ b/t/lib/Variable/Magic/TestThreads.pm @@ -15,7 +15,7 @@ sub skipall { sub diag { require Test::More; - Test::More::diag(@_); + Test::More::diag($_) for @_; } sub import { @@ -27,7 +27,7 @@ sub import { 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.013_004; my $t_v = $force ? '0' : '1.67'; my $has_threads = do { @@ -66,10 +66,7 @@ sub spawn { threads->create(@_); }; push @diag, "Thread creation error: $@" if $@; - if (@diag) { - require Test::More; - Test::More::diag($_) for @diag; - } + diag(@diag) if @diag; return $thread ? $thread : (); }