X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F81-threads-teardown.t;h=6fc843780f6281ab2792a76ce762c0dd2386f4f5;hb=b39886a970e497bd4018bd32132e44d5a43080d0;hp=a46d678c3d85d187763a8669959c3f75d284c2fc;hpb=0c5eb4d19c4c97d9b26e6a3152e447d37db0a36e;p=perl%2Fmodules%2FLexical-Types.git diff --git a/t/81-threads-teardown.t b/t/81-threads-teardown.t index a46d678..6fc8437 100644 --- a/t/81-threads-teardown.t +++ b/t/81-threads-teardown.t @@ -41,8 +41,9 @@ SKIP: { use threads; BEGIN { require Lexical::Types; } sub X::DESTROY { - eval 'use Lexical::Types; package Z; my Z $z = 1'; + my $res = eval 'use Lexical::Types; sub Z::TYPEDSCALAR { 123 } my Z $z'; exit 1 if $@; + exit 2 if not defined $res or $res != 123; } threads->create(sub { my $x = bless { }, 'X';