X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F11-detach.t;h=ef0b3f87c8ccb0774506eff5a39d2770d4948c19;hb=86915a65eed5d806e6c48b8b8fda1d3c4d990987;hp=32339aed251d7deef0323c1441d54627d7130146;hpb=4c809697b9f79c6f752911f19642becfdff2dd87;p=perl%2Fmodules%2FThread-Cleanup.git diff --git a/t/11-detach.t b/t/11-detach.t index 32339ae..ef0b3f8 100644 --- a/t/11-detach.t +++ b/t/11-detach.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Config qw/%Config/; +use Config qw<%Config>; BEGIN { if (!$Config{useithreads}) { @@ -18,6 +18,11 @@ use threads::shared; use Test::More tests => 5 * (2 + 2 + 1) + 1; +BEGIN { + defined and diag "Using threads $_" for $threads::VERSION; + defined and diag "Using threads::shared $_" for $threads::shared::VERSION; +} + use Thread::Cleanup; my %called : shared; @@ -71,9 +76,6 @@ my @t = map { $thr; } 0 .. 4; -diag "Using threads $threads::VERSION"; -diag "Using threads::shared $threads::shared::VERSION"; - $_->detach for @t; sleep 2;