summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-21 00:39:17 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-21 00:39:17 +0000
commit9c63ababe730a679456af7dbae670cea805c3751 (patch)
treeb5f011f29d3d216162a4a41e58353a6235d1b112 /t
parented6c1d6b44d8ffac74beba8dcd7c0393a8698b0d (diff)
downloadperl-9c63ababe730a679456af7dbae670cea805c3751.tar.gz
fix small memory leak when mess_sv happens to be touched by magic
p4raw-id: //depot/perl@1585
Diffstat (limited to 't')
-rwxr-xr-xt/lib/thread.t4
-rwxr-xr-xt/op/local.t3
-rwxr-xr-xt/op/pat.t3
-rwxr-xr-xt/op/regexp.t3
4 files changed, 9 insertions, 4 deletions
diff --git a/t/lib/thread.t b/t/lib/thread.t
index fecfb0304a..83407a9fab 100755
--- a/t/lib/thread.t
+++ b/t/lib/thread.t
@@ -8,7 +8,9 @@ BEGIN {
print "1..0\n";
exit 0;
}
- $ENV{PERL_DESTRUCT_LEVEL} = 0; # XXX known trouble with global destruction
+
+ # XXX known trouble with global destruction
+ $ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3;
}
$| = 1;
print "1..14\n";
diff --git a/t/op/local.t b/t/op/local.t
index f8c037d4bf..2f674d103b 100755
--- a/t/op/local.t
+++ b/t/op/local.t
@@ -4,7 +4,8 @@
print "1..58\n";
-$ENV{PERL_DESTRUCT_LEVEL} = 0; # XXX known to leaks scalars
+# XXX known to leak scalars
+$ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3;
sub foo {
local($a, $b) = @_;
diff --git a/t/op/pat.t b/t/op/pat.t
index ef014f2562..f16783ede9 100755
--- a/t/op/pat.t
+++ b/t/op/pat.t
@@ -12,7 +12,8 @@ BEGIN {
}
eval 'use Config'; # Defaults assumed if this fails
-$ENV{PERL_DESTRUCT_LEVEL} = 0; # XXX known to leaks scalars
+# XXX known to leak scalars
+$ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3;
$x = "abc\ndef\n";
diff --git a/t/op/regexp.t b/t/op/regexp.t
index 4ebb8c073d..0ec069b19a 100755
--- a/t/op/regexp.t
+++ b/t/op/regexp.t
@@ -1,6 +1,7 @@
#!./perl
-$ENV{PERL_DESTRUCT_LEVEL} = 0; # XXX known to leaks scalars
+# XXX known to leak scalars
+$ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3;
# The tests are in a separate file 't/op/re_tests'.
# Each line in that file is a separate test.