diff mbox series

[liburing,1/1] tests: a small fix for zc tests

Message ID 4794c23f60a3a0f4c5f6e83af4598eca47dda68a.1664292508.git.asml.silence@gmail.com (mailing list archive)
State New
Headers show
Series [liburing,1/1] tests: a small fix for zc tests | expand

Commit Message

Pavel Begunkov Sept. 27, 2022, 3:28 p.m. UTC
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 test/send-zerocopy.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Jens Axboe Sept. 27, 2022, 5:54 p.m. UTC | #1
On Tue, 27 Sep 2022 16:28:59 +0100, Pavel Begunkov wrote:
> 


Applied, thanks!

[1/1] tests: a small fix for zc tests
      (no commit info)

Best regards,
diff mbox series

Patch

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++;