| 53 | } |
| 54 | |
| 55 | static int test_ring(void) |
| 56 | { |
| 57 | struct io_uring ring; |
| 58 | struct io_uring_params p = { }; |
| 59 | int ret; |
| 60 | |
| 61 | p.flags = 0; |
| 62 | ret = io_uring_queue_init_params(8, &ring, &p); |
| 63 | if (ret) { |
| 64 | fprintf(stderr, "ring setup failed: %d\n", ret); |
| 65 | return 1; |
| 66 | } |
| 67 | |
| 68 | ret = test(&ring); |
| 69 | if (ret) { |
| 70 | fprintf(stderr, "test failed\n"); |
| 71 | goto err; |
| 72 | } |
| 73 | err: |
| 74 | io_uring_queue_exit(&ring); |
| 75 | return ret; |
| 76 | } |
| 77 | |
| 78 | int main(int argc, char *argv[]) |
| 79 | { |
no test coverage detected