public inbox for [email protected]
 help / color / mirror / Atom feed
From: Pavel Begunkov <[email protected]>
To: [email protected]
Cc: Jens Axboe <[email protected]>, [email protected]
Subject: [PATCH liburing 1/1] tests: a small fix for zc tests
Date: Tue, 27 Sep 2022 16:28:59 +0100	[thread overview]
Message-ID: <4794c23f60a3a0f4c5f6e83af4598eca47dda68a.1664292508.git.asml.silence@gmail.com> (raw)

Signed-off-by: Pavel Begunkov <[email protected]>
---
 test/send-zerocopy.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/test/send-zerocopy.c b/test/send-zerocopy.c
index 1c4e5f2..88578e0 100644
--- a/test/send-zerocopy.c
+++ b/test/send-zerocopy.c
@@ -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++;
-- 
2.37.2


             reply	other threads:[~2022-09-27 15:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-27 15:28 Pavel Begunkov [this message]
2022-09-27 17:54 ` [PATCH liburing 1/1] tests: a small fix for zc tests Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4794c23f60a3a0f4c5f6e83af4598eca47dda68a.1664292508.git.asml.silence@gmail.com \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox