if ("$]" < 5.013_004 and not $ENV{PERL_VARIABLE_MAGIC_TEST_THREADS}) {
_diag("perl 5.13.4 required to safely test global destruction");
- return;
+ return 0;
}
my $env_level = int($ENV{PERL_DESTRUCT_LEVEL} || 0);
require Test::More;
if ($is_debugging) {
_diag("Global destruction level $env_level set by PERL_DESTRUCT_LEVEL (debugging perl)");
- return;
+ return 1;
} else {
_diag("PERL_DESTRUCT_LEVEL is set to $env_level, but this perl doesn't seem to have debugging enabled");
}
};
if ($has_perl_destruct_level) {
_diag("Global destruction level $level set by Perl::Destruct::Level");
- return;
+ return 1;
}
_diag("Not testing global destruction");
- return;
+ return 0;
}
1;