X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faccessors_xs_cachedwarn.t;fp=t%2Faccessors_xs_cachedwarn.t;h=c8e659b944730c165205097824e553978600abe4;hb=40f3dfeb3711b97a0e182ee9ac6910d9f26bb722;hp=c6a53777031274d7081577da32e372f71180a952;hpb=5c87a5b19e42365de81b3ef9cf6af82a74206f0f;p=p5sagit%2FClass-Accessor-Grouped.git diff --git a/t/accessors_xs_cachedwarn.t b/t/accessors_xs_cachedwarn.t index c6a5377..c8e659b 100644 --- a/t/accessors_xs_cachedwarn.t +++ b/t/accessors_xs_cachedwarn.t @@ -45,9 +45,15 @@ share(@w) if $has_threads; is ($obj->singlefield, 2, 'Normal get'); is ($obj2->singlefield, undef, 'Normal get on unrelated object'); + + 42; }; - $has_threads ? threads->create( $todo )->join : $todo->(); + is ( + ($has_threads ? threads->create( $todo )->join : $todo->()), + 42, + "Correct result after do-er", + ) } is (@w, 3, '3 warnings total');