summaryrefslogtreecommitdiff
path: root/test/accept.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/accept.c')
-rw-r--r--test/accept.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/accept.c b/test/accept.c
index 4305f77..f096f8a 100644
--- a/test/accept.c
+++ b/test/accept.c
@@ -367,11 +367,10 @@ static int test_accept_sqpoll(void)
int ret, should_fail;
p.flags = IORING_SETUP_SQPOLL;
- ret = io_uring_queue_init_params(32, &m_io_uring, &p);
- if (ret && geteuid()) {
- printf("%s: skipped, not root\n", __FUNCTION__);
+ ret = t_create_ring_params(32, &m_io_uring, &p);
+ if (ret == T_SETUP_SKIP)
return 0;
- } else if (ret)
+ else if (ret < 0)
return ret;
should_fail = 1;