X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScope-Upper.git;a=blobdiff_plain;f=t%2F54-unwind-threads.t;h=af6a3ca4acee5d98460b21d98450595caf4530dd;hp=559993823e2759160260b652b14f77bd36038f88;hb=c6120af4f7a3990cebfdd10df0523832f560abd3;hpb=bac2d3bafef497b0c64e294795a9e6605fcb6422 diff --git a/t/54-unwind-threads.t b/t/54-unwind-threads.t index 5599938..af6a3ca 100644 --- a/t/54-unwind-threads.t +++ b/t/54-unwind-threads.t @@ -1,18 +1,18 @@ -#!perl -T +#!perl use strict; use warnings; -use Scope::Upper qw; - 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; + our $z; sub up1 { @@ -20,7 +20,7 @@ sub up1 { local $z = $tid; my $p = "[$tid] up1"; - usleep rand(1e6); + usleep rand(2.5e5); my @res = ( -1,