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

Function main

test/stdout.c:201–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201int 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}

Callers

nothing calls this directly

Calls 4

io_uring_queue_initFunction · 0.85
test_stdout_ioFunction · 0.85
test_stdout_io_fixedFunction · 0.85
test_pipe_io_fixedFunction · 0.85

Tested by

no test coverage detected