Skip to content

Commit b11bb6e

Browse files
committed
add the openDir cwd parent test
1 parent ae72c71 commit b11bb6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/std/fs/test.zig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ test "openDirAbsolute" {
9292
}
9393
}
9494

95+
test "openDir cwd parent .." {
96+
if (builtin.os.tag == .wasi) return error.SkipZigTest;
97+
98+
var cwd = try fs.cwd().openDir("..", .{});
99+
defer cwd.close();
100+
}
101+
95102
test "readLinkAbsolute" {
96103
if (builtin.os.tag == .wasi) return error.SkipZigTest;
97104

0 commit comments

Comments
 (0)