]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - t/20-recurse.t
5.11.5 no longer leaks scalars
[perl/modules/Thread-Cleanup.git] / t / 20-recurse.t
index 2e639623c1ab9dd67255bf1e160da4f0c091cc4b..24e6184a3a93e0cb8b0660aba641b05d77ddd549 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.011005;
 
 our $x = -1;