X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-join.t;h=0a4ea4de61b8c4bda0267b87382825f38e75727c;hb=ba8793aed63c1cd66942055b1c2d934bd1c28a9d;hp=b3f92c2a6c552469ae0d8b8021408f1b3e5b4aca;hpb=15b9171b2fc61b12e0dcc123369fc2b66fe87012;p=perl%2Fmodules%2FThread-Cleanup.git diff --git a/t/10-join.t b/t/10-join.t index b3f92c2..0a4ea4d 100644 --- a/t/10-join.t +++ b/t/10-join.t @@ -18,6 +18,11 @@ use threads::shared; use Test::More tests => 5 * (2 + 2) + 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; @@ -70,9 +75,6 @@ my @t = map { $thr; } 0 .. 4; -diag "Using threads $threads::VERSION"; -diag "Using threads::shared $threads::shared::VERSION"; - $_->join for @t; is $x, -1, '$x in the main thread';