| 199 | } |
| 200 | |
| 201 | int main(int argc, char *argv[]) |
| 202 | { |
| 203 | struct io_uring ring; |
| 204 | int ret; |
| 205 | |
| 206 | if (argc > 1) |
| 207 | return 0; |
| 208 | |
| 209 | ret = io_uring_queue_init(8, &ring, 0); |
| 210 | if (ret) { |
| 211 | fprintf(stderr, "ring setup failed\n"); |
| 212 | return 1; |
| 213 | } |
| 214 | |
| 215 | ret = test_stdout_io(&ring); |
| 216 | if (ret) { |
| 217 | fprintf(stderr, "test_pipe_io failed\n"); |
| 218 | return ret; |
| 219 | } |
| 220 | |
| 221 | ret = test_stdout_io_fixed(&ring); |
| 222 | if (ret) { |
| 223 | fprintf(stderr, "test_pipe_io_fixed failed\n"); |
| 224 | return ret; |
| 225 | } |
| 226 | |
| 227 | ret = test_pipe_io_fixed(&ring); |
| 228 | if (ret) { |
| 229 | fprintf(stderr, "test_pipe_io_fixed failed\n"); |
| 230 | return ret; |
| 231 | } |
| 232 | |
| 233 | return 0; |
| 234 | } |
nothing calls this directly
no test coverage detected