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

Function main

test/reg-wait.c:545–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545int main(int argc, char *argv[])
546{
547 int ret;
548
549 if (argc > 1)
550 return 0;
551
552 page_size = sysconf(_SC_PAGESIZE);
553 if (page_size < 0) {
554 perror("sysconf(_SC_PAGESIZE)");
555 return 1;
556 }
557
558 ret = test_regions();
559 if (ret == T_EXIT_SKIP) {
560 printf("regions are not supported, skip\n");
561 return 0;
562 } else if (ret) {
563 fprintf(stderr, "test_region failed\n");
564 return 1;
565 }
566
567 ret = test_wait_arg();
568 if (ret == T_EXIT_FAIL) {
569 fprintf(stderr, "test_wait_arg failed\n");
570 return 1;
571 }
572
573 ret = test_region_buffer_types();
574 if (ret == T_EXIT_FAIL) {
575 fprintf(stderr, "test_region_buffer_types failed\n");
576 return 1;
577 }
578
579 return 0;
580}

Callers

nothing calls this directly

Calls 3

test_regionsFunction · 0.85
test_wait_argFunction · 0.85
test_region_buffer_typesFunction · 0.85

Tested by

no test coverage detected