Skip to content

Commit

Permalink
test/futex: don't error on missing futex support
Browse files Browse the repository at this point in the history
We do test for this, but then break and check something else that
will fail. Just set no_futex = 1 and return 0 to get the test
skipped.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Nov 7, 2023
1 parent 78eef45 commit 5f608eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int __test(struct io_uring *ring, int vectored, int async,

if (cqe->res == -EINVAL || cqe->res == -EOPNOTSUPP) {
no_futex = 1;
break;
return 0;
}
io_uring_cqe_seen(ring, cqe);
}
Expand Down

0 comments on commit 5f608eb

Please sign in to comment.