summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-21 01:05:49 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-21 01:05:49 +0000
commit3fb91a5e46aea49ba3ce96c8d95ff739f2fc0307 (patch)
tree2d14287d07c6fd2cac76b09e8789e825926fb70d /t/TEST
parent9c63ababe730a679456af7dbae670cea805c3751 (diff)
downloadperl-3fb91a5e46aea49ba3ce96c8d95ff739f2fc0307.tar.gz
do not override PERL_DESTRUCT_LEVEL if use has it set
p4raw-id: //depot/perl@1586
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/TEST b/t/TEST
index 05ee168265..c1d1905731 100755
--- a/t/TEST
+++ b/t/TEST
@@ -17,7 +17,9 @@ chdir 't' if -f 't/TEST';
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) {