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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux