Skip to content

Commit 92217f7

Browse files
committed
[io grant] Test IO::Path.child-secure with combiners
1 parent f3c5dae commit 92217f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

S32-io/io-path.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ subtest '.link' => {
181181
}
182182

183183
subtest '.child-secure' => {
184+
plan 10;
185+
184186
my $parent = make-temp-dir;
185187
my $non-resolving-parent = make-temp-file.child('bar');
186188

@@ -211,4 +213,7 @@ subtest '.child-secure' => {
211213

212214
fails-like { $parent.child-secure('foo/../../bar') }, X::IO::NotAChild,
213215
'resolved parent fails (given path is not a child, via child + ../)';
216+
217+
fails-like { $parent.child-secure("../\x[308]") }, X::IO::NotAChild,
218+
'resolved parent fails (given path is not a child, via combiners)';
214219
}

0 commit comments

Comments
 (0)