From 65e518e8e8ab74b276c5a284caebfad4e5aa502c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 9 Nov 2021 15:36:20 -0700 Subject: [PATCH] io_uring: skip statx test failure on older kernels --- lib/std/os/linux/io_uring.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/std/os/linux/io_uring.zig b/lib/std/os/linux/io_uring.zig index c0f0e8553d..71e4458579 100644 --- a/lib/std/os/linux/io_uring.zig +++ b/lib/std/os/linux/io_uring.zig @@ -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{