| 106 | } |
| 107 | |
| 108 | int main(int argc, char * const argv[]) |
| 109 | { |
| 110 | struct io_uring_params p = { .flags = IORING_SETUP_SQPOLL, }; |
| 111 | struct io_uring ring; |
| 112 | int ret, i; |
| 113 | |
| 114 | if (argc > 1) |
| 115 | return T_EXIT_SKIP; |
| 116 | |
| 117 | ret = t_create_ring_params(8, &ring, &p); |
| 118 | if (ret == T_SETUP_SKIP) |
| 119 | return T_EXIT_SKIP; |
| 120 | else if (ret != T_SETUP_OK) |
| 121 | return T_EXIT_FAIL; |
| 122 | |
| 123 | for (i = 0; i < 20; i++) { |
| 124 | ret = test_exec(&ring, argv); |
| 125 | if (ret) { |
| 126 | fprintf(stderr, "test_exec failed\n"); |
| 127 | return ret; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | return T_EXIT_PASS; |
| 132 | } |
nothing calls this directly
no test coverage detected