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

Function main

test/accept.c:748–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746}
747
748int main(int argc, char *argv[])
749{
750 int ret;
751
752 if (argc > 1)
753 return T_EXIT_SKIP;
754
755 ret = test_accept(1, false);
756 if (ret == T_EXIT_FAIL) {
757 fprintf(stderr, "test_accept failed\n");
758 return ret;
759 }
760 if (no_accept)
761 return T_EXIT_SKIP;
762
763 ret = test_accept(2, false);
764 if (ret == T_EXIT_FAIL) {
765 fprintf(stderr, "test_accept(2) failed\n");
766 return ret;
767 }
768
769 ret = test_accept(2, true);
770 if (ret == T_EXIT_FAIL) {
771 fprintf(stderr, "test_accept(2, true) failed\n");
772 return ret;
773 }
774
775 ret = test_accept_nonblock(false, 1);
776 if (ret == T_EXIT_FAIL) {
777 fprintf(stderr, "test_accept_nonblock failed\n");
778 return ret;
779 }
780
781 ret = test_accept_nonblock(true, 1);
782 if (ret == T_EXIT_FAIL) {
783 fprintf(stderr, "test_accept_nonblock(before, 1) failed\n");
784 return ret;
785 }
786
787 ret = test_accept_nonblock(true, 3);
788 if (ret == T_EXIT_FAIL) {
789 fprintf(stderr, "test_accept_nonblock(before,3) failed\n");
790 return ret;
791 }
792
793 ret = test_accept_fixed();
794 if (ret == T_EXIT_FAIL) {
795 fprintf(stderr, "test_accept_fixed failed\n");
796 return ret;
797 }
798
799 ret = test_multishot_fixed_accept();
800 if (ret == T_EXIT_FAIL) {
801 fprintf(stderr, "test_multishot_fixed_accept failed\n");
802 return ret;
803 }
804
805 ret = test_accept_multishot_wrong_arg();

Callers

nothing calls this directly

Calls 10

test_acceptFunction · 0.85
test_accept_nonblockFunction · 0.85
test_accept_fixedFunction · 0.85
test_accept_sqpollFunction · 0.85
test_accept_cancelFunction · 0.85
test_multishot_acceptFunction · 0.85
test_accept_manyFunction · 0.85

Tested by

no test coverage detected