X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=t%2Flib%2FVariable%2FMagic%2FTestGlobalDestruction.pm;h=a840f2adf6156d34c41786c2e6d516e10a75f994;hp=ca7997fff93b96fa4831f7c6106ea52aa5efacf4;hb=c616330372aea7cc94ba28dda6fa38fd302dbdaf;hpb=431bf25f01990d10db1b7da5762b087b38cf4ff8 diff --git a/t/lib/Variable/Magic/TestGlobalDestruction.pm b/t/lib/Variable/Magic/TestGlobalDestruction.pm index ca7997f..a840f2a 100644 --- a/t/lib/Variable/Magic/TestGlobalDestruction.pm +++ b/t/lib/Variable/Magic/TestGlobalDestruction.pm @@ -66,6 +66,11 @@ sub import { my %args = @_; my $level = $args{level} || 1; + if ("$]" < 5.013_004 and not $ENV{PERL_VARIABLE_MAGIC_TEST_THREADS}) { + _diag("perl 5.13.4 required to safely test global destruction"); + return; + } + my $env_level = int($ENV{PERL_DESTRUCT_LEVEL} || 0); if ($env_level >= $level) { my $is_debugging = is_debugging_perl();