mirror of
https://github.com/openharmony/third_party_liburing.git
synced 2026-07-21 07:05:34 -04:00
tests: a small fix for zc tests
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/4794c23f60a3a0f4c5f6e83af4598eca47dda68a.1664292508.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
4ec9cb7044
commit
2cc080f7e2
@@ -141,9 +141,7 @@ static int test_send_faults(struct io_uring *ring, int sock_tx, int sock_rx)
|
||||
assert(!ret);
|
||||
assert(cqe->user_data <= 2);
|
||||
|
||||
if (cqe->flags & IORING_CQE_F_NOTIF) {
|
||||
assert(ret > 0);
|
||||
} else {
|
||||
if (!(cqe->flags & IORING_CQE_F_NOTIF)) {
|
||||
assert(cqe->res == -EFAULT);
|
||||
if (cqe->flags & IORING_CQE_F_MORE)
|
||||
nr_cqes++;
|
||||
|
||||
Reference in New Issue
Block a user