Skip to content

Commit

Permalink
test/file-exit-unreg: fix wrong file registration check
Browse files Browse the repository at this point in the history
2nd check should be that it's an error, eg less than zero...

Fixes: 03726b4 ("test/file-exit-unreg: check defer tw file exit unregistration")
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Nov 5, 2024
1 parent 03726b4 commit 3f64b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/file-exit-unreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int main(int argc, char *argv[])
ret = io_uring_register_files_tags(&ring, fds, tags, 2);
if (ret == -EINVAL) {
return T_EXIT_SKIP;
} else {
} else if (ret < 0) {
fprintf(stderr, "file_register_init: %d\n", ret);
return T_EXIT_FAIL;
}
Expand Down

0 comments on commit 3f64b67

Please sign in to comment.