]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - t/11-detach.t
Switch qw delimiters to <>
[perl/modules/Thread-Cleanup.git] / t / 11-detach.t
index 32339aed251d7deef0323c1441d54627d7130146..ef0b3f87c8ccb0774506eff5a39d2770d4948c19 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Config qw/%Config/;
+use Config qw<%Config>;
 
 BEGIN {
  if (!$Config{useithreads}) {
@@ -18,6 +18,11 @@ use threads::shared;
 
 use Test::More tests => 5 * (2 + 2 + 1) + 1;
 
+BEGIN {
+ defined and diag "Using threads $_"         for $threads::VERSION;
+ defined and diag "Using threads::shared $_" for $threads::shared::VERSION;
+}
+
 use Thread::Cleanup;
 
 my %called : shared;
@@ -71,9 +76,6 @@ my @t = map {
  $thr;
 } 0 .. 4;
 
-diag "Using threads $threads::VERSION";
-diag "Using threads::shared $threads::shared::VERSION";
-
 $_->detach for @t;
 
 sleep 2;