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

Function main

test/regbuf-clone.c:624–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624int main(int argc, char *argv[])
625{
626 int ret;
627
628 if (argc > 1)
629 return T_EXIT_SKIP;
630
631 ret = test_merge();
632 if (ret == T_EXIT_FAIL) {
633 fprintf(stderr, "test_merge failed\n");
634 return T_EXIT_FAIL;
635 }
636
637 ret = test(0, 0);
638 if (ret == T_EXIT_SKIP) {
639 return T_EXIT_SKIP;
640 } else if (ret != T_EXIT_PASS) {
641 fprintf(stderr, "test 0 0 failed\n");
642 return T_EXIT_FAIL;
643 }
644 if (no_buf_clone)
645 return T_EXIT_SKIP;
646
647 ret = test(0, 1);
648 if (ret == T_EXIT_SKIP) {
649 return T_EXIT_SKIP;
650 } else if (ret != T_EXIT_PASS) {
651 fprintf(stderr, "test 0 1 failed\n");
652 return T_EXIT_FAIL;
653 }
654
655 ret = test(1, 0);
656 if (ret == T_EXIT_SKIP) {
657 return T_EXIT_SKIP;
658 } else if (ret != T_EXIT_PASS) {
659 fprintf(stderr, "test 1 0 failed\n");
660 return T_EXIT_FAIL;
661 }
662
663 ret = test(1, 1);
664 if (ret == T_EXIT_SKIP) {
665 return T_EXIT_SKIP;
666 } else if (ret != T_EXIT_PASS) {
667 fprintf(stderr, "test 1 1 failed\n");
668 return T_EXIT_FAIL;
669 }
670
671 ret = test_dummy();
672 if (ret == T_EXIT_SKIP) {
673 return T_EXIT_SKIP;
674 } else if (ret != T_EXIT_PASS) {
675 fprintf(stderr, "test_dummy failed\n");
676 return T_EXIT_FAIL;
677 }
678
679 ret = test_offsets();
680 if (ret == T_EXIT_SKIP) {
681 return T_EXIT_PASS;

Callers

nothing calls this directly

Calls 5

test_mergeFunction · 0.85
test_dummyFunction · 0.85
test_sameFunction · 0.85
testFunction · 0.70
test_offsetsFunction · 0.70

Tested by

no test coverage detected