mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
dragonfly: pass test: lib/std/std.zig
This commit is contained in:
parent
571b817abc
commit
7798af7461
@ -446,8 +446,8 @@ test "file operations on directories" {
|
||||
try testing.expectError(error.IsDir, tmp_dir.dir.createFile(test_dir_name, .{}));
|
||||
try testing.expectError(error.IsDir, tmp_dir.dir.deleteFile(test_dir_name));
|
||||
switch (builtin.os.tag) {
|
||||
// NetBSD does not error when reading a directory.
|
||||
.netbsd => {},
|
||||
// no error when reading a directory.
|
||||
.dragonfly, .netbsd => {},
|
||||
// Currently, WASI will return error.Unexpected (via ENOTCAPABLE) when attempting fd_read on a directory handle.
|
||||
// TODO: Re-enable on WASI once https://github.com/bytecodealliance/wasmtime/issues/1935 is resolved.
|
||||
.wasi => {},
|
||||
|
||||
@ -2696,6 +2696,8 @@ pub fn mkdiratZ(dir_fd: fd_t, sub_dir_path: [*:0]const u8, mode: u32) MakeDirErr
|
||||
.NOSPC => return error.NoSpaceLeft,
|
||||
.NOTDIR => return error.NotDir,
|
||||
.ROFS => return error.ReadOnlyFileSystem,
|
||||
// dragonfly: when dir_fd is unlinked from filesystem
|
||||
.NOTCONN => return error.FileNotFound,
|
||||
else => |err| return unexpectedErrno(err),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user