]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - t/20-recurse.t
Make Perl version numbers more readable
[perl/modules/Thread-Cleanup.git] / t / 20-recurse.t
index 2e639623c1ab9dd67255bf1e160da4f0c091cc4b..be45423ab73115cd54b0d7a7fe5ba9a245ef16ff 100644 (file)
@@ -24,11 +24,14 @@ 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';
+diag 'This will leak some scalars' unless "$]" >= 5.011_005;
 
 our $x = -1;