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

Function main

test/epwait.c:418–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418int main(int argc, char *argv[])
419{
420 int ret;
421
422 if (argc > 1)
423 return T_EXIT_SKIP;
424
425 ret = test(0);
426 if (ret == T_EXIT_SKIP)
427 return T_EXIT_SKIP;
428 else if (ret) {
429 fprintf(stderr, "test 0 failed\n");
430 return T_EXIT_FAIL;
431 }
432
433 ret = test(IORING_SETUP_DEFER_TASKRUN|IORING_SETUP_SINGLE_ISSUER);
434 if (ret) {
435 fprintf(stderr, "test defer failed\n");
436 return T_EXIT_FAIL;
437 }
438
439 ret = test(IORING_SETUP_SQPOLL);
440 if (ret) {
441 fprintf(stderr, "test sqpoll failed\n");
442 return T_EXIT_FAIL;
443 }
444
445 return T_EXIT_PASS;
446}

Callers

nothing calls this directly

Calls 1

testFunction · 0.70

Tested by

no test coverage detected