authorgravatar for johnnymarler@gmail.comJonathan Marler <johnnymarler@gmail.com> 2021-04-02 13:17:06-06:00
committergravatar for johnnymarler@gmail.comJonathan Marler <johnnymarler@gmail.com> 2021-05-20 14:00:41-06:00
log59de5d0350f76933549e5402f090785351d9498d
treecffa17e68fd4d259a5df914eac8a3d4456a370fe
parenta72ad61cd4b718dd1ce2bf8ba4a3404f8304648c

add the openDir cwd parent test


1 files changed, 7 insertions(+), 0 deletions(-)

lib/std/fs/test.zig+7
...@@ -92,6 +92,13 @@ test "openDirAbsolute" {...@@ -92,6 +92,13 @@ test "openDirAbsolute" {
92 }92 }
93}93}
9494
95test "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
95test "readLinkAbsolute" {102test "readLinkAbsolute" {
96 if (builtin.os.tag == .wasi) return error.SkipZigTest;103 if (builtin.os.tag == .wasi) return error.SkipZigTest;
97104