authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-11-09 15:36:20-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-11-09 18:31:03-07:00
log65e518e8e8ab74b276c5a284caebfad4e5aa502c
tree80d4b7d8945fbd839406dfdb6762818a188bc89e
parent6869bc9ff872b45c4126526eecf9d8607ad73d7a

io_uring: skip statx test failure on older kernels


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/os/linux/io_uring.zig+2
...@@ -1792,6 +1792,8 @@ test "statx" {...@@ -1792,6 +1792,8 @@ test "statx" {
1792 // The filesystem containing the file referred to by fd does not support this operation;1792 // The filesystem containing the file referred to by fd does not support this operation;
1793 // or the mode is not supported by the filesystem containing the file referred to by fd:1793 // or the mode is not supported by the filesystem containing the file referred to by fd:
1794 .OPNOTSUPP => return error.SkipZigTest,1794 .OPNOTSUPP => return error.SkipZigTest,
1795 // The kernel is too old to support FDCWD for dir_fd
1796 .BADF => return error.SkipZigTest,
1795 else => |errno| std.debug.panic("unhandled errno: {}", .{errno}),1797 else => |errno| std.debug.panic("unhandled errno: {}", .{errno}),
1796 }1798 }
1797 try testing.expectEqual(linux.io_uring_cqe{1799 try testing.expectEqual(linux.io_uring_cqe{