summaryrefslogtreecommitdiff
path: root/test/submit-link-fail.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/submit-link-fail.c')
-rw-r--r--test/submit-link-fail.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/submit-link-fail.c b/test/submit-link-fail.c
index a12bdae..45f6976 100644
--- a/test/submit-link-fail.c
+++ b/test/submit-link-fail.c
@@ -56,10 +56,12 @@ static int test_underprep_fail(bool hardlink, bool drain, bool link_last,
for (i = 0; i < link_size; i++) {
sqe = io_uring_get_sqe(&ring);
- if (i == fail_idx)
+ if (i == fail_idx) {
io_uring_prep_read(sqe, invalid_fd, buffer, 1, 0);
- else
+ sqe->ioprio = (short) -1;
+ } else {
io_uring_prep_nop(sqe);
+ }
if (i != link_size - 1 || !link_last)
sqe->flags |= link_flags;