io-uring.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH liburing 1/1] tests: a small fix for zc tests
@ 2022-09-27 15:28 Pavel Begunkov
  2022-09-27 17:54 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Begunkov @ 2022-09-27 15:28 UTC (permalink / raw)
  To: io-uring; +Cc: Jens Axboe, asml.silence

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH liburing 1/1] tests: a small fix for zc tests
  2022-09-27 15:28 [PATCH liburing 1/1] tests: a small fix for zc tests Pavel Begunkov
@ 2022-09-27 17:54 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2022-09-27 17:54 UTC (permalink / raw)
  To: io-uring, Pavel Begunkov

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,
-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-27 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27 15:28 [PATCH liburing 1/1] tests: a small fix for zc tests Pavel Begunkov
2022-09-27 17:54 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).