]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - t/20-recurse.t
Test helper modules version output overhaul
[perl/modules/Thread-Cleanup.git] / t / 20-recurse.t
index 2e639623c1ab9dd67255bf1e160da4f0c091cc4b..afa72e46a04a2c312790be99aeed4c449f03b331 100644 (file)
@@ -24,10 +24,13 @@ BEGIN {
 
 use Test::More tests => (($num ** ($depth + 1) - 1) / ($num - 1) - 1 ) * (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;
 
-diag "Using threads $threads::VERSION";
-diag "Using threads::shared $threads::shared::VERSION";
 diag 'This will leak some scalars';
 
 our $x = -1;