mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
Pending #5127
This commit is contained in:
parent
067bd7e424
commit
78e9e131e0
@ -12,6 +12,9 @@ const expect = std.testing.expect;
|
||||
const fs = std.fs;
|
||||
|
||||
test "fallocate" {
|
||||
// TODO https://github.com/ziglang/zig/issues/5127
|
||||
if (std.Target.current.cpu.arch == .mips) return error.SkipZigTest;
|
||||
|
||||
const path = "test_fallocate";
|
||||
const file = try fs.cwd().createFile(path, .{ .truncate = true, .mode = 0o666 });
|
||||
defer file.close();
|
||||
@ -24,10 +27,7 @@ test "fallocate" {
|
||||
0 => {},
|
||||
linux.ENOSYS => return error.SkipZigTest,
|
||||
linux.EOPNOTSUPP => return error.SkipZigTest,
|
||||
else => |errno| {
|
||||
std.debug.print("Unhandled Errno: {}", .{ errno });
|
||||
return error.SkipZigTest;
|
||||
},
|
||||
else => |errno| std.debug.panic("unhandled errno: {}", .{ errno }),
|
||||
}
|
||||
|
||||
expect((try file.stat()).size == len);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user