MCPcopy Create free account
hub / github.com/axboe/liburing / test_accept

Function test_accept

test/accept.c:585–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585static 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
601static int test_multishot_accept(int count, bool before, bool overflow)
602{

Callers 1

mainFunction · 0.85

Calls 3

io_uring_queue_initFunction · 0.85
io_uring_queue_exitFunction · 0.85
testFunction · 0.70

Tested by

no test coverage detected