aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/liburing/test/msg-ring.c
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2024-11-09 19:14:48 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2024-11-09 19:25:43 +0300
commit9ade466e8683a2e3b45dacf45f74fcf4a3c40cee (patch)
tree5386d43454d677cb1239ed7a889dfcf101e99136 /contrib/libs/liburing/test/msg-ring.c
parent1f59ab019232ff97a73c7c13736b254925fa8b0b (diff)
downloadydb-9ade466e8683a2e3b45dacf45f74fcf4a3c40cee.tar.gz
Update contrib/libs/liburing to 2.8
commit_hash:761e2e80642a3d32073f0261b3f5b1992e54a74f
Diffstat (limited to 'contrib/libs/liburing/test/msg-ring.c')
-rw-r--r--contrib/libs/liburing/test/msg-ring.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/libs/liburing/test/msg-ring.c b/contrib/libs/liburing/test/msg-ring.c
index 843ba1f8ef..e87ee6d92a 100644
--- a/contrib/libs/liburing/test/msg-ring.c
+++ b/contrib/libs/liburing/test/msg-ring.c
@@ -310,6 +310,8 @@ static int test_disabled_ring(struct io_uring *ring, int flags)
flags |= IORING_SETUP_R_DISABLED;
ret = io_uring_queue_init(8, &disabled_ring, flags);
if (ret) {
+ if (ret == -EINVAL)
+ return T_EXIT_SKIP;
fprintf(stderr, "ring setup failed: %d\n", ret);
return 1;
}
@@ -350,6 +352,8 @@ static int test(int ring_flags)
ret = io_uring_queue_init(8, &ring, ring_flags);
if (ret) {
+ if (ret == -EINVAL)
+ return T_EXIT_SKIP;
fprintf(stderr, "ring setup failed: %d\n", ret);
return T_EXIT_FAIL;
}
@@ -453,13 +457,15 @@ int main(int argc, char *argv[])
return T_EXIT_SKIP;
ret = test(0);
- if (ret != T_EXIT_PASS) {
+ if (ret == T_EXIT_FAIL) {
fprintf(stderr, "ring flags 0 failed\n");
return ret;
+ } else if (ret == T_EXIT_SKIP) {
+ return T_EXIT_SKIP;
}
ret = test(IORING_SETUP_SINGLE_ISSUER|IORING_SETUP_DEFER_TASKRUN);
- if (ret != T_EXIT_PASS) {
+ if (ret == T_EXIT_FAIL) {
fprintf(stderr, "ring flags defer failed\n");
return ret;
}