Skip to content

Commit

Permalink
test/cmd-discard: don't fail on EBUSY -> T_EXIT_SKIP
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Dec 30, 2024
1 parent 299d140 commit e22d2fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/cmd-discard.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,29 +404,29 @@ int main(int argc, char *argv[])
if (!opcodes[cmd_op].test)
continue;
ret = basic_cmd_test(&ring, cmd_op);
if (ret) {
if (ret == T_EXIT_SKIP)
continue;

if (ret == T_EXIT_FAIL) {
fprintf(stderr, "basic_cmd_test() failed, cmd %i\n",
cmd_op);
return T_EXIT_FAIL;
}

ret = test_rdonly(&ring, cmd_op);
if (ret) {
if (ret == T_EXIT_FAIL) {
fprintf(stderr, "test_rdonly() failed, cmd %i\n",
cmd_op);
return T_EXIT_FAIL;
}

ret = test_fail_edge_cases(&ring, cmd_op);
if (ret) {
if (ret == T_EXIT_FAIL) {
fprintf(stderr, "test_fail_edge_cases() failed, cmd %i\n",
cmd_op);
return T_EXIT_FAIL;
}
fret = T_EXIT_PASS;
if (ret == T_EXIT_SKIP)
fret = T_EXIT_SKIP;
else
fret = T_EXIT_PASS;
}

io_uring_queue_exit(&ring);
Expand Down

0 comments on commit e22d2fa

Please sign in to comment.