Commit 59de5d0350

Jonathan Marler <johnnymarler@gmail.com>
2021-04-02 21:17:06
add the openDir cwd parent test
1 parent a72ad61
Changed files (1)
lib
std
lib/std/fs/test.zig
@@ -92,6 +92,13 @@ test "openDirAbsolute" {
     }
 }
 
+test "openDir cwd parent .." {
+    if (builtin.os.tag == .wasi) return error.SkipZigTest;
+
+    var cwd = try fs.cwd().openDir("..", .{});
+    defer cwd.close();
+}
+
 test "readLinkAbsolute" {
     if (builtin.os.tag == .wasi) return error.SkipZigTest;