From e79acc24d301bd4d6afe715ce1e6be9dc3c654b5 Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Wed, 23 Dec 2020 18:32:39 +0200 Subject: std: clenup, fixes, fmt --- lib/std/os/linux/io_uring.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/std/os') diff --git a/lib/std/os/linux/io_uring.zig b/lib/std/os/linux/io_uring.zig index 0fdc7651d2..a19685d33b 100644 --- a/lib/std/os/linux/io_uring.zig +++ b/lib/std/os/linux/io_uring.zig @@ -1378,11 +1378,10 @@ test "timeout_remove" { // Timeout remove operations set the fd to -1, which results in EBADF before EINVAL. // We use IORING_FEAT_RW_CUR_POS as a safety check here to make sure we are at least pre-5.6. // We don't want to skip this test for newer kernels. - if ( - cqe_timeout.user_data == 0x99999999 and + if (cqe_timeout.user_data == 0x99999999 and cqe_timeout.res == -linux.EBADF and - (ring.features & linux.IORING_FEAT_RW_CUR_POS) == 0 - ) { + (ring.features & linux.IORING_FEAT_RW_CUR_POS) == 0) + { return error.SkipZigTest; } testing.expectEqual(linux.io_uring_cqe{ -- cgit v1.2.3