]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/85-stress-unwind.t
Compatibility fix for perl 5.13.10
[perl/modules/Scope-Upper.git] / t / 85-stress-unwind.t
index 5a59e7a01af26eae18b5be2d8682d2f2811d6561..03dee8f641bf0678694747f7ffc6c0eba82e199f 100644 (file)
@@ -3,14 +3,16 @@
 use strict;
 use warnings;
 
-use Test::More 'no_plan';
+use lib 't/lib';
+use Test::Leaner 'no_plan';
 
-use Scope::Upper qw/unwind/;
+use Scope::Upper qw/unwind UP HERE/;
 
 our ($call, @args, $args);
 
 $call = sub {
  my ($height, $level, $i) = @_;
+ $level = $level ? 'UP ' x $level : 'HERE';
  return [ [ "unwind(\@args => $level)\n", '' ] ];
 };