diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-06-09 18:40:45 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-06-09 18:40:45 +0000 |
commit | a835f506297cdcfea7880c5f4f50b8ee686582a8 (patch) | |
tree | e63ef83f31b2ee7baa0b141f41dd097e169d6179 /t/op/repeat.t | |
parent | 0c6e7072ba51b7173484f5077541fbae1a031af0 (diff) | |
download | perl-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/repeat.t')
-rwxr-xr-x | t/op/repeat.t | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/t/op/repeat.t b/t/op/repeat.t index f33022ed0a..e728413e9b 100755 --- a/t/op/repeat.t +++ b/t/op/repeat.t @@ -6,9 +6,7 @@ BEGIN { } require './test.pl'; -plan(tests => 45); - -use Config; +plan(tests => 41); # compile time @@ -153,38 +151,3 @@ is(77, scalar ((1,7)x2), 'stack truncation'); } is($y, 'abcdabcd'); } - -# Test the "malloc wrappage" guards introduced in Perl 5.8.4. - -# Note that the guards do not catch everything: for example -# "0"x0x7f...f is fine because it will attempt to allocate -# "only" 0x7f...f+1 bytes: no wrappage there. - -if ($Config{ptrsize} == 4) { - eval '@a=(0)x0x7fffffff'; - like($@, qr/Out of memory during list extend/, "list extend"); - - eval '@a=(0)x0x80000000'; - like($@, qr/Out of memory during list extend/, "list extend"); - - eval '$a="012"x0x7fffffff'; - like($@, qr/Out of memory during string extend/, "string extend"); - - eval '$a="012"x0x80000000'; - like($@, qr/Out of memory during string extend/, "string extend"); -} elsif ($Config{ptrsize} == 8) { - eval '@a=(0)x0x7fffffffffffffff'; - like($@, qr/Out of memory during list extend/, "list extend"); - - eval '@a=(0)x0x8000000000000000'; - like($@, qr/Out of memory during list extend/, "list extend"); - - eval '$a="012"x0x7fffffffffffffff'; - like($@, qr/Out of memory during string extend/, "string extend"); - - eval '$a="012"x0x8000000000000000'; - like($@, qr/Out of memory during string extend/, "string extend"); -} else { - die "\$Config{ptrsize} == $Config{ptrsize}?"; -} - |