]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - t/11-detach.t
Kwalitee test overhaul
[perl/modules/Thread-Cleanup.git] / t / 11-detach.t
index 32339aed251d7deef0323c1441d54627d7130146..a91d1394dd73a504750d6d6273e8d5df903306af 100644 (file)
@@ -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;