zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ec10e63f4945e81cfc5369a2c886ef0b7ae11c1b (tree)
parent 1ea650bb75e009bb37b5bd4e896a90e2a86f8583
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 29 Nov 2021 18:04:28 -0700

std: add workaround for failing io_uring test

See #10247

Diffstat:
Mlib/std/os/linux/io_uring.zig | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/std/os/linux/io_uring.zig b/lib/std/os/linux/io_uring.zig @@ -1888,6 +1888,10 @@ test "timeout_link_chain1" { if (cqe.res != -@as(i32, @enumToInt(linux.E.ALREADY)) and cqe.res != -@as(i32, @enumToInt(linux.E.TIME))) { + if (cqe.res == -@as(i32, @enumToInt(linux.E.BADF))) { + // https://github.com/ziglang/zig/issues/10247 + return error.SkipZigTest; + } std.debug.print("Req 0x{x} got {d}\n", .{ cqe.user_data, cqe.res }); try testing.expect(false); }