]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - t/11-detach.t
Test helper modules version output overhaul
[perl/modules/Thread-Cleanup.git] / t / 11-detach.t
index 620af76a3fdf01a32d51a5b6d8d1ecf391648386..a91d1394dd73a504750d6d6273e8d5df903306af 100644 (file)
@@ -18,10 +18,12 @@ use threads::shared;
 
 use Test::More tests => 5 * (2 + 2 + 1) + 1;
 
-use Thread::Cleanup;
+BEGIN {
+ defined and diag "Using threads $_"         for $threads::VERSION;
+ defined and diag "Using threads::shared $_" for $threads::shared::VERSION;
+}
 
-diag "Using threads $threads::VERSION";
-diag "Using threads::shared $threads::shared::VERSION";
+use Thread::Cleanup;
 
 my %called : shared;
 my %nums   : shared;