summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-07-03 11:30:52 -0600
committerKarl Williamson <khw@cpan.org>2017-07-12 21:14:23 -0600
commit10463ce6abea3eb975addcdf1480ac8b1bcf9769 (patch)
tree8e6a6ad16a59a4fb0ef862419b0c4f8ce20cdcac /t/comp
parent713375f8fb3fe893172750a56079759d3a7f8e83 (diff)
downloadperl-10463ce6abea3eb975addcdf1480ac8b1bcf9769.tar.gz
t/comp/parser.t: Skip test on 32-bit builds
This code point is no longer legal on such builds. We need to use this code point to trigger the bug, so can't lower it to work on those builds.
Diffstat (limited to 't/comp')
-rw-r--r--t/comp/parser.t17
1 files changed, 10 insertions, 7 deletions
diff --git a/t/comp/parser.t b/t/comp/parser.t
index 6fd5ad0aa0..79b930ecb8 100644
--- a/t/comp/parser.t
+++ b/t/comp/parser.t
@@ -582,13 +582,16 @@ is $@, "", 'read into keys';
eval 'substr keys(%h),0,=3';
is $@, "", 'substr keys assignment';
-# very large utf8 char in error message was overflowing buffer
-{
-
- no warnings;
- eval "q" . chr(100000000064);
- like $@, qr/Can't find string terminator "." anywhere before EOF/,
- 'RT 128952';
+{ # very large utf8 char in error message was overflowing buffer
+ if (length sprintf("%x", ~0) <= 8) {
+ is 1, 1, "skip because overflows on 32-bit machine";
+ }
+ else {
+ no warnings;
+ eval "q" . chr(100000000064);
+ like $@, qr/Can't find string terminator "." anywhere before EOF/,
+ 'RT 128952';
+ }
}
# RT #130311: many parser shifts before a reduce