authorgravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-11-02 12:37:55+02:00
committergravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-11-02 12:37:55+02:00
log78e9e131e02bba1949aab67b63e7fe94ae8b33bb
treece0873a0ef9a38c2f278fb8e3cfbd5950de76480
parent067bd7e424a8e83c49bd4f3f0da5ff0ff75dc3bc

Pending #5127


1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/os/linux/test.zig+4-4
...@@ -12,6 +12,9 @@ const expect = std.testing.expect;...@@ -12,6 +12,9 @@ const expect = std.testing.expect;
12const fs = std.fs;12const fs = std.fs;
1313
14test "fallocate" {14test "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 }
3232
33 expect((try file.stat()).size == len);33 expect((try file.stat()).size == len);