]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/11-reap-level.t
Threads tests may not be able to spawn all the threads
[perl/modules/Scope-Upper.git] / t / 11-reap-level.t
index 8880ef3d11327f9067eab87e437cd0715707b41d..d5f639eb5de05537c7a666cafbb72983ee57a83b 100644 (file)
@@ -3,15 +3,16 @@
 use strict;
 use warnings;
 
-use Test::More 'no_plan'; 
+use lib 't/lib';
+use Test::Leaner 'no_plan';
 
-use Scope::Upper qw/reap/;
+use Scope::Upper qw<reap UP HERE>;
 
-use lib 't/lib';
 use Scope::Upper::TestGenerator;
 
 local $Scope::Upper::TestGenerator::call = sub {
  my ($height, $level, $i) = @_;
+ $level = $level ? 'UP ' x $level : 'HERE';
  return [ "reap \\&check => $level;\n" ];
 };
 
@@ -38,7 +39,7 @@ $testcase
 DIAG
    undef $testcase;
   }
-  Test::More::is($a, $b, $desc);
+  Test::Leaner::is($a, $b, $desc);
  }
 }