Or if PERL_VARIABLE_MAGIC_TEST_THREADS is set, for debugging purpose.
my %args = @_;
my $level = $args{level} || 1;
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();
my $env_level = int($ENV{PERL_DESTRUCT_LEVEL} || 0);
if ($env_level >= $level) {
my $is_debugging = is_debugging_perl();