]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - t/10-join.t
Switch qw delimiters to <>
[perl/modules/Thread-Cleanup.git] / t / 10-join.t
index b3f92c2a6c552469ae0d8b8021408f1b3e5b4aca..b957f25138986e93d806e60cfad3c3d87d258a20 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;
 
+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;
@@ -70,9 +75,6 @@ my @t = map {
  $thr;
 } 0 .. 4;
 
-diag "Using threads $threads::VERSION";
-diag "Using threads::shared $threads::shared::VERSION";
-
 $_->join for @t;
 
 is $x, -1, '$x in the main thread';