diff mbox series

[liburing,1/1] tests: fixup defer-taskrun.c after api change

Message ID 2ed8db2b22f7840977bdc58b6d282be750c878bb.1662900803.git.asml.silence@gmail.com (mailing list archive)
State New
Headers show
Series [liburing,1/1] tests: fixup defer-taskrun.c after api change | expand

Commit Message

Pavel Begunkov Sept. 13, 2022, 12:07 p.m. UTC
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 test/defer-taskrun.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Jens Axboe Sept. 13, 2022, 3:23 p.m. UTC | #1
On Tue, 13 Sep 2022 13:07:11 +0100, Pavel Begunkov wrote:
> 


Applied, thanks!

[1/1] tests: fixup defer-taskrun.c after api change
      commit: 2fadaf2ca667fc62f2275e21c229411d0834ec4b

Best regards,
diff mbox series

Patch

diff --git a/test/defer-taskrun.c b/test/defer-taskrun.c
index aec8c5d..c6e0ea0 100644
--- a/test/defer-taskrun.c
+++ b/test/defer-taskrun.c
@@ -142,8 +142,7 @@  static int test_thread_shutdown(void)
 	if (ret)
 		return ret;
 
-	/* check that even before submitting we don't get errors */
-	CHECK(io_uring_get_events(&td.ring) == 0);
+	CHECK(io_uring_get_events(&td.ring) == -EEXIST);
 
 	td.efd = eventfd(0, 0);
 	CHECK(td.efd >= 0);