Skip to content

Commit 07531a7

Browse files
1-1samkhwilliamson
authored andcommitted
todo test for GH 22168 (chr() does not lose tainting)
1 parent ace6c63 commit 07531a7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

t/run/todo.t

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,19 @@ TODO: {
324324

325325
}
326326

327+
TODO: {
328+
todo_skip 1 if is_miniperl();
329+
local $::TODO = 'GH 22168';
330+
fresh_perl_is(
331+
<<~'HERE',
332+
use Scalar::Util qw(tainted);
333+
my $in = <STDIN>;
334+
print tainted(chr $in);
335+
HERE
336+
'1',
337+
{ stdin => '36', switches => [ '-t' ] },
338+
'chr() does not lose tainting; GH 22168'
339+
);
340+
}
341+
327342
done_testing();

0 commit comments

Comments
 (0)