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

Function main

test/buf-ring-stress.c:464–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464int main(int argc, char *argv[])
465{
466 int ret;
467
468 if (argc > 1)
469 return T_EXIT_SKIP;
470
471 ret = test_read_drain_refill();
472 if (ret == T_EXIT_SKIP) {
473 printf("Buffer rings not supported, skipping\n");
474 return T_EXIT_SKIP;
475 }
476 if (ret == T_EXIT_FAIL) {
477 fprintf(stderr, "test_read_drain_refill failed\n");
478 return T_EXIT_FAIL;
479 }
480
481 ret = test_read_overflow_refill();
482 if (ret == T_EXIT_FAIL) {
483 fprintf(stderr, "test_read_overflow_refill failed\n");
484 return T_EXIT_FAIL;
485 }
486
487 ret = test_rapid_drain_refill();
488 if (ret == T_EXIT_FAIL) {
489 fprintf(stderr, "test_rapid_drain_refill failed\n");
490 return T_EXIT_FAIL;
491 }
492
493 return T_EXIT_PASS;
494}

Callers

nothing calls this directly

Calls 3

test_read_drain_refillFunction · 0.85
test_rapid_drain_refillFunction · 0.85

Tested by

no test coverage detected