diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2024-11-09 19:14:48 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2024-11-09 19:25:43 +0300 |
commit | 9ade466e8683a2e3b45dacf45f74fcf4a3c40cee (patch) | |
tree | 5386d43454d677cb1239ed7a889dfcf101e99136 /contrib/libs/liburing/test/iopoll-leak.c | |
parent | 1f59ab019232ff97a73c7c13736b254925fa8b0b (diff) | |
download | ydb-9ade466e8683a2e3b45dacf45f74fcf4a3c40cee.tar.gz |
Update contrib/libs/liburing to 2.8
commit_hash:761e2e80642a3d32073f0261b3f5b1992e54a74f
Diffstat (limited to 'contrib/libs/liburing/test/iopoll-leak.c')
-rw-r--r-- | contrib/libs/liburing/test/iopoll-leak.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/libs/liburing/test/iopoll-leak.c b/contrib/libs/liburing/test/iopoll-leak.c index 01b98fb64a..53b92426d6 100644 --- a/contrib/libs/liburing/test/iopoll-leak.c +++ b/contrib/libs/liburing/test/iopoll-leak.c @@ -27,6 +27,8 @@ static int do_iopoll(const char *fname) fd = open(fname, O_RDONLY | O_DIRECT); if (fd < 0) { + if (errno == EINVAL || errno == EPERM || errno == EACCES) + return T_EXIT_SKIP; perror("open"); return T_EXIT_SKIP; } @@ -40,6 +42,8 @@ static int do_iopoll(const char *fname) io_uring_submit(&ring); close(fd); + free(iov->iov_base); + free(iov); return T_EXIT_PASS; } |