]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/42-threads-global.t
Test indirect calls in babycart in heredocs
[perl/modules/indirect.git] / t / 42-threads-global.t
index b3e0bff156d30e8ab673e59f568b6b57e23d50da..2f68d43404d15bd88ae81dcc183a1d95658c505b 100644 (file)
@@ -1,14 +1,10 @@
-#!perl -T
+#!perl
 
 use strict;
 use warnings;
 
-BEGIN { require indirect; }
-
 use lib 't/lib';
-use VPIT::TestHelpers (
- threads => [ 'indirect' => indirect::I_THREADSAFE ],
-);
+use VPIT::TestHelpers threads => [ 'indirect' => 'indirect::I_THREADSAFE()' ];
 
 use Test::Leaner;
 
@@ -42,4 +38,6 @@ my @threads = map spawn(\&try), 1 .. 10;
 
 $_->join for @threads;
 
-done_testing(scalar(@threads) * 3 * 2);
+pass 'done';
+
+done_testing;