Skip to content

Commit

Permalink
io_uring: skip statx test failure on older kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk authored and nuald committed Nov 13, 2021
1 parent b7ed060 commit ce68e9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/std/os/linux/io_uring.zig
Expand Up @@ -1792,6 +1792,8 @@ test "statx" {
// 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:
.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}),
}
try testing.expectEqual(linux.io_uring_cqe{
Expand Down

0 comments on commit ce68e9f

Please sign in to comment.