diff options
| author | Veikka Tuominen <git@vexu.eu> | 2020-12-23 18:32:39 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2020-12-24 00:23:29 +0200 |
| commit | e79acc24d301bd4d6afe715ce1e6be9dc3c654b5 (patch) | |
| tree | c138dab203b86645cd36165796d379e0675ba910 /lib/std/os | |
| parent | e5aab6222812f29f4e8c99adb89358ac3e781680 (diff) | |
| download | zig-e79acc24d301bd4d6afe715ce1e6be9dc3c654b5.tar.gz zig-e79acc24d301bd4d6afe715ce1e6be9dc3c654b5.zip | |
std: clenup, fixes, fmt
Diffstat (limited to 'lib/std/os')
| -rw-r--r-- | lib/std/os/linux/io_uring.zig | 7 |
1 files changed, 3 insertions, 4 deletions
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{ |
