mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 11:13:08 +00:00
io_uring: skip statx test failure on older kernels
This commit is contained in:
parent
6869bc9ff8
commit
65e518e8e8
@ -1792,6 +1792,8 @@ test "statx" {
|
|||||||
// The filesystem containing the file referred to by fd does not support this operation;
|
// The filesystem containing the file referred to by fd does not support this operation;
|
||||||
// or the mode is not supported by the filesystem containing the file referred to by fd:
|
// or the mode is not supported by the filesystem containing the file referred to by fd:
|
||||||
.OPNOTSUPP => return error.SkipZigTest,
|
.OPNOTSUPP => return error.SkipZigTest,
|
||||||
|
// The kernel is too old to support FDCWD for dir_fd
|
||||||
|
.BADF => return error.SkipZigTest,
|
||||||
else => |errno| std.debug.panic("unhandled errno: {}", .{errno}),
|
else => |errno| std.debug.panic("unhandled errno: {}", .{errno}),
|
||||||
}
|
}
|
||||||
try testing.expectEqual(linux.io_uring_cqe{
|
try testing.expectEqual(linux.io_uring_cqe{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user