zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 6f00157e1e0159a5115a4e9e2ed389e819499282 (tree)
parent 47a2e8026fb567b46b9ddf2256f1ace2fba674e3
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 18 Dec 2025 22:32:29 -0800

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

Diffstat:
Mlib/std/fs/test.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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