p4raw-id: //depot/perl@1586
die "You need to run \"make test\" first to set things up.\n"
unless -e 'perl' or -e 'perl.exe';
-$ENV{PERL_DESTRUCT_LEVEL} = 2; # check leakage for embedders
+# check leakage for embedders
+$ENV{PERL_DESTRUCT_LEVEL} = 2 unless exists $ENV{PERL_DESTRUCT_LEVEL};
+
$ENV{EMXSHELL} = 'sh'; # For OS/2
if ($#ARGV == -1) {