summaryrefslogtreecommitdiffstats
path: root/contrib/libs/liburing/test/sq-poll-dup.c
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2023-07-26 17:26:21 +0300
committerthegeorg <[email protected]>2023-07-26 17:26:21 +0300
commit3785d5f97965bccf048718d8717904cf50f9f8f9 (patch)
treeb7ce8ae67d7eb7fcf7767c54379f0564c281147f /contrib/libs/liburing/test/sq-poll-dup.c
parent1f6b57071583f89299bb5abd3863d594f23c5be5 (diff)
Update contrib/libs/liburing to 2.4
Diffstat (limited to 'contrib/libs/liburing/test/sq-poll-dup.c')
-rw-r--r--contrib/libs/liburing/test/sq-poll-dup.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/contrib/libs/liburing/test/sq-poll-dup.c b/contrib/libs/liburing/test/sq-poll-dup.c
index bbeb63e6cb7..a821f219629 100644
--- a/contrib/libs/liburing/test/sq-poll-dup.c
+++ b/contrib/libs/liburing/test/sq-poll-dup.c
@@ -172,14 +172,21 @@ int main(int argc, char *argv[])
vecs = t_create_buffers(BUFFERS, BS);
fd = open(fname, O_RDONLY | O_DIRECT);
- if (fname != argv[1])
- unlink(fname);
-
if (fd < 0) {
+ int __e = errno;
+
+ if (fname != argv[1])
+ unlink(fname);
+
+ if (__e == EINVAL)
+ return T_EXIT_SKIP;
perror("open");
return -1;
}
+ if (fname != argv[1])
+ unlink(fname);
+
ret = test(fd, 0, 0);
if (ret) {
fprintf(stderr, "test 0 0 failed\n");