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

Function main

test/sqpoll-exec.c:108–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108int 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}

Callers

nothing calls this directly

Calls 2

t_create_ring_paramsFunction · 0.85
test_execFunction · 0.70

Tested by

no test coverage detected