Skip to content

Commit 73a5448

Browse files
committed
[io grant] Remove two fudged &chdir tests
They were fudged 5 years ago. Seems the intent is to check chdir for non-existent path fails and not throws, but one test wouldn't work now even if it were unfudged as a sunk Failure would explode. Testing of this functionality will be subsumed by the new tests, to be added shorly.
1 parent 04333b3 commit 73a5448

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

S32-io/chdir.t

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
use v6;
2+
use lib <t/spec/packages/>;
23
use Test;
4+
use Test::Util;
35

46
# L<S32::IO/Functions/chdir>
57

6-
plan 10;
8+
plan 8;
79

810
throws-like ' chdir() ', Exception, 'Cannot call chdir without an argument';
911

@@ -32,16 +34,4 @@ else {
3234
"Current directory is '$subdir' subfolder (relative)";
3335
}
3436

35-
my $no_subdir = 'lol does not exist';
36-
if $no_subdir.IO ~~ :d {
37-
skip "subdir '$no_subdir' does exist, actually.", 2;
38-
}
39-
else {
40-
#?rakudo 2 skip 'spec non-conformance due to missing sink context'
41-
lives-ok { chdir("$no_subdir") },
42-
'chdir to a non-existent does not by default throw an exception';
43-
ok !chdir("$no_subdir"),
44-
'change to non-existent directory gives a false value';
45-
}
46-
4737
# vim: ft=perl6

0 commit comments

Comments
 (0)