X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F41-threads-teardown.t;fp=t%2F41-threads-teardown.t;h=8003fad399a7deb266158c8bfa6db3ba6c52a0ba;hp=a5d45f69798e5a9dd6ea8122c39b1cf5923c2201;hb=42991cca70b2f98cbfc9e7cd1470df0e40842a8d;hpb=907b0beb21a8676cccec31189f4e51fca75b2157 diff --git a/t/41-threads-teardown.t b/t/41-threads-teardown.t index a5d45f6..8003fad 100644 --- a/t/41-threads-teardown.t +++ b/t/41-threads-teardown.t @@ -57,7 +57,7 @@ SKIP: { use threads::shared; my $code : shared; $code = 0; - no indirect cb => sub { lock $code; ++$code }; + no indirect hook => sub { lock $code; ++$code }; sub X3::DESTROY { eval $_[0]->{code} } threads->create(sub { my $x = bless { code => 'new Z3' }, 'X3'; @@ -67,5 +67,6 @@ SKIP: { exit $code; RUN skip RUN_PERL_FAILED() => 1 unless defined $status; - is $status, 0, 'indirect does not check eval STRING during global destruction at the end of a thread'; + my $code = $status >> 8; + is $code, 1, 'indirect checks eval STRING during global destruction at the end of a cloned thread'; }