From: Vincent Pit Date: Tue, 24 Mar 2009 01:31:19 +0000 (+0100) Subject: Move the module version diagnostics higher in t/1* X-Git-Tag: v0.02~6 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=4dd588d5239c5f5f562d59c0377f29a1075bbe6f;p=perl%2Fmodules%2FThread-Cleanup.git Move the module version diagnostics higher in t/1* --- diff --git a/t/10-join.t b/t/10-join.t index b3f92c2..df54d31 100644 --- a/t/10-join.t +++ b/t/10-join.t @@ -20,6 +20,9 @@ use Test::More tests => 5 * (2 + 2) + 1; use Thread::Cleanup; +diag "Using threads $threads::VERSION"; +diag "Using threads::shared $threads::shared::VERSION"; + my %called : shared; my %nums : shared; @@ -70,9 +73,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'; diff --git a/t/11-detach.t b/t/11-detach.t index 32339ae..620af76 100644 --- a/t/11-detach.t +++ b/t/11-detach.t @@ -20,6 +20,9 @@ use Test::More tests => 5 * (2 + 2 + 1) + 1; use Thread::Cleanup; +diag "Using threads $threads::VERSION"; +diag "Using threads::shared $threads::shared::VERSION"; + my %called : shared; my %nums : shared; @@ -71,9 +74,6 @@ my @t = map { $thr; } 0 .. 4; -diag "Using threads $threads::VERSION"; -diag "Using threads::shared $threads::shared::VERSION"; - $_->detach for @t; sleep 2;