X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScope-Upper.git;a=blobdiff_plain;f=t%2F59-yield-threads.t;h=736388e1f674516628ecc55e6f0e5b48ade100bc;hp=4d6d0b244b2842cc08bc915ff84b93ca0c3345ad;hb=c6120af4f7a3990cebfdd10df0523832f560abd3;hpb=bac2d3bafef497b0c64e294795a9e6605fcb6422 diff --git a/t/59-yield-threads.t b/t/59-yield-threads.t index 4d6d0b2..736388e 100644 --- a/t/59-yield-threads.t +++ b/t/59-yield-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,