authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-18 22:32:29-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-23 22:15:10-08:00
log6f00157e1e0159a5115a4e9e2ed389e819499282
tree85f21c3030798c9dc816da3108834bf57db919f8
parent47a2e8026fb567b46b9ddf2256f1ace2fba674e3

std: fix "open smoke test" by passing allow_directory option


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

lib/std/fs/test.zig+1-1
...@@ -2561,7 +2561,7 @@ test "open smoke test" {...@@ -2561,7 +2561,7 @@ test "open smoke test" {
2561 }2561 }
25622562
2563 // Try opening as file which should fail.2563 // Try opening as file which should fail.
2564 try expectError(error.IsDir, tmp.dir.openFile(io, "some_dir", .{}));2564 try expectError(error.IsDir, tmp.dir.openFile(io, "some_dir", .{ .allow_directory = false }));
2565}2565}
25662566
2567test "hard link with different directories" {2567test "hard link with different directories" {