]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/41-threads-teardown.t
Revamp cloned thread cleanup
[perl/modules/indirect.git] / t / 41-threads-teardown.t
index a5d45f69798e5a9dd6ea8122c39b1cf5923c2201..8003fad399a7deb266158c8bfa6db3ba6c52a0ba 100644 (file)
@@ -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';
 }