summaryrefslogtreecommitdiff
path: root/t/op/array.t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-09 18:40:45 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-09 18:40:45 +0000
commita835f506297cdcfea7880c5f4f50b8ee686582a8 (patch)
treee63ef83f31b2ee7baa0b141f41dd097e169d6179 /t/op/array.t
parent0c6e7072ba51b7173484f5077541fbae1a031af0 (diff)
downloadperl-a835f506297cdcfea7880c5f4f50b8ee686582a8.tar.gz
Remove the "malloc wrappage" tests, due to their unportability
(as suggested by Jarkko.) p4raw-id: //depot/perl@22922
Diffstat (limited to 't/op/array.t')
-rwxr-xr-xt/op/array.t23
1 files changed, 1 insertions, 22 deletions
diff --git a/t/op/array.t b/t/op/array.t
index d7c1ee9175..77ea646a93 100755
--- a/t/op/array.t
+++ b/t/op/array.t
@@ -5,9 +5,7 @@ BEGIN {
@INC = '../lib';
}
-print "1..84\n";
-
-use Config;
+print "1..82\n";
#
# @foo, @bar, and @ary are also used from tie-stdarray after tie-ing them
@@ -299,22 +297,3 @@ sub kindalike { # TODO: test.pl-ize the array.t.
eval '$a[-1] = 0';
kindalike($@, qr/Modification of non-creatable array value attempted, subscript -1/, "\$a[-1] = 0", 82);
}
-
-# Test the "malloc wrappage" guard introduced in Perl 5.8.4.
-
-if ($Config{ptrsize} == 4) {
- eval '$a[0x7fffffff]=0';
- kindalike($@, qr/Out of memory during array extend/, "array extend", 83);
-
- eval '$a[0x80000000]=0';
- kindalike($@, qr/Out of memory during array extend/, "array extend", 84);
-} elsif ($Config{ptrsize} == 8) {
- eval '$a[0x7fffffffffffffff]=0';
- kindalike($@, qr/Out of memory during array extend/, "array extend", 83);
-
- eval '$a[0x8000000000000000]=0';
- kindalike($@, qr/Out of memory during array extend/, "array extend", 84);
-} else {
- die "\$Config{ptrsize} == $Config{ptrsize}?";
-}
-