diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-06-09 11:55:21 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-06-09 12:07:55 +0300 |
commit | afd4899380eea1c70e2a68714b5da1c9919ccdbd (patch) | |
tree | cd5120708784139bc6a0f8881da1ed8389a065b3 /contrib/libs/liburing/test/openat2.c | |
parent | a83bd2dd3c21e38c6c0807ec5e679497ab567f24 (diff) | |
download | ydb-afd4899380eea1c70e2a68714b5da1c9919ccdbd.tar.gz |
Update contrib/libs/liburing to 2.6
3b51a9fb14de805208d11f1c077c78bb5d487e0f
Diffstat (limited to 'contrib/libs/liburing/test/openat2.c')
-rw-r--r-- | contrib/libs/liburing/test/openat2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/libs/liburing/test/openat2.c b/contrib/libs/liburing/test/openat2.c index a3ad70e143..5206b73f3a 100644 --- a/contrib/libs/liburing/test/openat2.c +++ b/contrib/libs/liburing/test/openat2.c @@ -1,7 +1,7 @@ #include "../config-host.h" /* SPDX-License-Identifier: MIT */ /* - * Description: run various openat(2) tests + * Description: run various openat2(2) tests * */ #include <errno.h> @@ -73,6 +73,8 @@ static int test_open_fixed(const char *path, int dfd) } ret = io_uring_register_files(&ring, &fd, 1); if (ret) { + if (ret == -EINVAL || ret == -EBADF) + return 0; fprintf(stderr, "%s: register ret=%d\n", __FUNCTION__, ret); return -1; } @@ -142,6 +144,8 @@ static int test_open_fixed_fail(const char *path, int dfd) ret = io_uring_register_files(&ring, &fd, 1); if (ret) { + if (ret == -EINVAL || ret == -EBADF) + return 0; fprintf(stderr, "%s: register ret=%d\n", __FUNCTION__, ret); return -1; } |