X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F59-yield-threads.t;h=736388e1f674516628ecc55e6f0e5b48ade100bc;hb=b12d0710fc9e762dc2791d97f9f660454b9bb1f2;hp=fbe054f73aa8d4b36ecbacfc5d004e3bd80ddcfa;hpb=1cac52223ba0983d5d4007ab608fe4ea645eb037;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/59-yield-threads.t b/t/59-yield-threads.t index fbe054f..736388e 100644 --- a/t/59-yield-threads.t +++ b/t/59-yield-threads.t @@ -1,10 +1,13 @@ -#!perl -T +#!perl use strict; use warnings; use lib 't/lib'; -use Scope::Upper::TestThreads; +use VPIT::TestHelpers ( + threads => [ 'Scope::Upper' => 'Scope::Upper::SU_THREADSAFE()' ], + 'usleep', +); use Test::Leaner; @@ -17,7 +20,7 @@ sub up1 { local $z = $tid; my $p = "[$tid] up1"; - usleep rand(1e6); + usleep rand(2.5e5); my @res = ( -1,