summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-11-06 19:37:40 +0000
committerNicholas Clark <nick@ccl4.org>2007-11-06 19:37:40 +0000
commitd370611815346ab16486a214120c74920e95c043 (patch)
tree6f0bd149a6161f510e2bb5961e3eb81ecac67766 /t/op
parent8226145936b9ee2964b16c8818eff5900d9c6263 (diff)
downloadperl-d370611815346ab16486a214120c74920e95c043.tar.gz
Add a TODO test for bug #47195
p4raw-id: //depot/perl@32229
Diffstat (limited to 't/op')
-rwxr-xr-xt/op/taint.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/op/taint.t b/t/op/taint.t
index b49dfdadce..d33b66c1cd 100755
--- a/t/op/taint.t
+++ b/t/op/taint.t
@@ -17,7 +17,7 @@ use Config;
use File::Spec::Functions;
BEGIN { require './test.pl'; }
-plan tests => 261;
+plan tests => 267;
$| = 1;
@@ -1230,6 +1230,16 @@ SKIP:
like ($@, qr/^Insecure dependency in eval/);
}
+foreach my $ord (78, 163, 256) {
+ # 47195
+ my $line = 'A1' . $TAINT . chr $ord;
+ chop $line;
+ is($line, 'A1');
+ $line =~ /(A\S*)/;
+ local $::TODO = "Bug for UTF-8 not fixed yet" if $ord > 255;
+ ok(!tainted($1), "\\S match with chr $ord");
+}
+
# This may bomb out with the alarm signal so keep it last
SKIP: {
skip "No alarm()" unless $Config{d_alarm};