diff options
author | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-01-18 07:29:50 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-01-18 07:52:41 +0100 |
commit | 54fcd2cd405902c42b2f46e5110b540f83c77028 (patch) | |
tree | 9807b1e7e2fd09c76ec2e03d6a9ea0767106cb51 /t/re | |
parent | c25e53bef71ab0f21ff2b53e7adf829f605eadad (diff) | |
download | perl-54fcd2cd405902c42b2f46e5110b540f83c77028.tar.gz |
Revert "[perl #62646] Maximum string length with substr"
This reverts commit b6d1426f94a845fb8fece8b6ad0b7d9f35f2d62e.
Conflicts:
pp.c
Diffstat (limited to 't/re')
-rw-r--r-- | t/re/substr.t | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/t/re/substr.t b/t/re/substr.t index 49fd97bea7..c3fa6e10e7 100644 --- a/t/re/substr.t +++ b/t/re/substr.t @@ -24,7 +24,7 @@ $SIG{__WARN__} = sub { require './test.pl'; -plan(338); +plan(334); run_tests() unless caller; @@ -682,19 +682,4 @@ is($x, "\x{100}\x{200}\xFFb"); is(substr($a,1,1), 'b'); } -# [perl #62646] offsets exceeding 32 bits on 64-bit system -SKIP: { - skip("32-bit system", 4) unless ~0 > 0xffffffff; - my $a = "abc"; - my $r; - $w = 0; - $r = substr($a, 0xffffffff, 1); - is($r, undef); - is($w, 1); - $w = 0; - $r = substr($a, 0xffffffff+1, 1); - is($r, undef); - is($w, 1); -} - } |