zig

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

commit 78e9e131e02bba1949aab67b63e7fe94ae8b33bb (tree)
parent 067bd7e424a8e83c49bd4f3f0da5ff0ff75dc3bc
Author: Joran Dirk Greef <joran@ronomon.com>
Date:   Mon,  2 Nov 2020 12:37:55 +0200

Pending #5127

Diffstat:
Mlib/std/os/linux/test.zig | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/std/os/linux/test.zig b/lib/std/os/linux/test.zig @@ -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);