test/msg-ring-flags: cleanups for skipping on unsupported kernels
Don't print if the test was skipped, rely on the return value to be
consistent with other tests.
Minor cleanups.
Fixes: ("test/io_uring_prep_msg_ring_cqe_flags new test")
@@ -87,11 +87,9 @@ static int send_msg(struct io_uring *ring, struct io_uring *target)
}
io_uring_cqe_seen(ring, cqe);
-
return T_EXIT_PASS;
}
-
int main(int argc, char *argv[])
{
struct io_uring ring, ring2;
@@ -114,9 +112,7 @@ int main(int argc, char *argv[])
ret = send_msg(&ring, &ring2);
if (ret) {
- if (ret == T_EXIT_SKIP)
- fprintf(stderr, "test skipped\n");
- else
+ if (ret != T_EXIT_SKIP)
fprintf(stderr, "send_msg failed: %d\n", ret);
return ret;
}
