]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/54-unwind-threads.t
Update VPIT::TestHelpers to 2a6ac0f1
[perl/modules/Scope-Upper.git] / t / 54-unwind-threads.t
index 559993823e2759160260b652b14f77bd36038f88..af6a3ca4acee5d98460b21d98450595caf4530dd 100644 (file)
@@ -1,18 +1,18 @@
-#!perl -T
+#!perl
 
 use strict;
 use warnings;
 
-use Scope::Upper qw<unwind 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<unwind UP>;
+
 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,