| 583 | } |
| 584 | |
| 585 | static int test_accept(int count, bool before) |
| 586 | { |
| 587 | struct io_uring m_io_uring; |
| 588 | int ret; |
| 589 | struct accept_test_args args = { |
| 590 | .queue_accept_before_connect = before, |
| 591 | .extra_loops = count - 1 |
| 592 | }; |
| 593 | |
| 594 | ret = io_uring_queue_init(32, &m_io_uring, 0); |
| 595 | assert(ret >= 0); |
| 596 | ret = test(&m_io_uring, args); |
| 597 | io_uring_queue_exit(&m_io_uring); |
| 598 | return ret; |
| 599 | } |
| 600 | |
| 601 | static int test_multishot_accept(int count, bool before, bool overflow) |
| 602 | { |
no test coverage detected