-#!perl -T
+#!perl
use strict;
use warnings;
-use Scope::Upper qw<uplevel UP>;
-
use lib 't/lib';
use VPIT::TestHelpers (
- threads => [ 'Scope::Upper' => Scope::Upper::SU_THREADSAFE ],
+ threads => [ 'Scope::Upper' => 'Scope::Upper::SU_THREADSAFE()' ],
'usleep',
);
use Test::Leaner;
+use Scope::Upper qw<uplevel UP>;
+
sub depth {
my $depth = 0;
while (1) {
local $z = $tid;
my $p = "[$tid] up1";
- usleep rand(1e6);
+ usleep rand(2.5e5);
my @res = (
-2,
$_->join for @threads;
-done_testing(3 + scalar(@threads) * 3);
+done_testing;