X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F80-threads.t;h=4be8551bde15f5ca15cabcde4c406a835a4d7342;hb=de0427488ee9f7973135b9568461a9572fed1c89;hp=3b0a5959b5e06229ae5b667056e4f6b89112daf0;hpb=eb0bd56068ca67ea93f621ef38f59dec9bdbbcd8;p=perl%2Fmodules%2FTest-Leaner.git diff --git a/t/80-threads.t b/t/80-threads.t index 3b0a595..4be8551 100644 --- a/t/80-threads.t +++ b/t/80-threads.t @@ -3,6 +3,8 @@ use strict; use warnings; +BEGIN { delete $ENV{PERL_TEST_LEANER_USES_TEST_MORE} } + sub skipall { my ($msg) = @_; require Test::Leaner; @@ -17,7 +19,7 @@ BEGIN { skipall 'This perl wasn\'t built to support threads' unless $Config{useithreads}; skipall 'perl 5.13.4 required to test thread safety' - unless $force or $] >= 5.013004; + unless $force or "$]" >= 5.013_004; skipall "threads $t_v required to test thread safety" unless eval "use threads $t_v; 1"; } @@ -39,7 +41,7 @@ sub worker { diag "spawned thread $tid"; tick; for (1 .. 10) { - pass "test $_ in thread $tid"; + cmp_ok 1, '==', '1.0', "test $_ in thread $tid"; tick; } }