| ... | @@ -12,6 +12,9 @@ const expect = std.testing.expect; | ... | @@ -12,6 +12,9 @@ const expect = std.testing.expect; |
| 12 | const fs = std.fs; | 12 | const fs = std.fs; |
| 13 | | 13 | |
| 14 | test "fallocate" { | 14 | test "fallocate" { |
| | 15 | // TODO https://github.com/ziglang/zig/issues/5127 |
| | 16 | if (std.Target.current.cpu.arch == .mips) return error.SkipZigTest; |
| | 17 | |
| 15 | const path = "test_fallocate"; | 18 | const path = "test_fallocate"; |
| 16 | const file = try fs.cwd().createFile(path, .{ .truncate = true, .mode = 0o666 }); | 19 | const file = try fs.cwd().createFile(path, .{ .truncate = true, .mode = 0o666 }); |
| 17 | defer file.close(); | 20 | defer file.close(); |
| ... | @@ -24,10 +27,7 @@ test "fallocate" { | ... | @@ -24,10 +27,7 @@ test "fallocate" { |
| 24 | 0 => {}, | 27 | 0 => {}, |
| 25 | linux.ENOSYS => return error.SkipZigTest, | 28 | linux.ENOSYS => return error.SkipZigTest, |
| 26 | linux.EOPNOTSUPP => return error.SkipZigTest, | 29 | linux.EOPNOTSUPP => return error.SkipZigTest, |
| 27 | else => |errno| { | 30 | else => |errno| std.debug.panic("unhandled errno: {}", .{ errno }), |
| 28 | std.debug.print("Unhandled Errno: {}", .{ errno }); | | |
| 29 | return error.SkipZigTest; | | |
| 30 | }, | | |
| 31 | } | 31 | } |
| 32 | | 32 | |
| 33 | expect((try file.stat()).size == len); | 33 | expect((try file.stat()).size == len); |