]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - t/10-join.t
Test helper modules version output overhaul
[perl/modules/Thread-Cleanup.git] / t / 10-join.t
index df54d311efea7d741d5bad066ee9536bc2f32f40..0a4ea4de61b8c4bda0267b87382825f38e75727c 100644 (file)
@@ -18,10 +18,12 @@ use threads::shared;
 
 use Test::More tests => 5 * (2 + 2) + 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;