X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faccessors_pp.t;h=d97e3fa46201f10c8214fdf757cacee2e9ba4724;hb=270b8b0ff6a3a40932caa937459e884904d9dd49;hp=8f208129d2d1ad4145d5728e588ea5980901e92a;hpb=5802bd3e7c055b942623d3bbbc410bc45559c9c9;p=p5sagit%2FClass-Accessor-Grouped.git diff --git a/t/accessors_pp.t b/t/accessors_pp.t index 8f20812..d97e3fa 100644 --- a/t/accessors_pp.t +++ b/t/accessors_pp.t @@ -64,16 +64,28 @@ for my $tname (qw/accessors.t accessors_ro.t accessors_wo.t/) { for (1,2) { is ( threads->create(sub { - is ( - threads->create(sub { - $todo->(); - })->join, - 666, - 'Innner thread joined ok', - ); - 777; + + # nested threading of this sort badly blows up on 5.10.0 (fixed with 5.10.1) + unless ($] > 5.009 and $] < 5.010001) { + is ( + + threads->create(sub { + $todo->(); + })->join, + + 666, + + 'Innner thread joined ok', + ); + + is ($todo->(), 666, "Intermediate result ok"); + } + + return 777; })->join, + 777, + 'Outer thread joined ok', );