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

Function main

test/eventfd-ring.c:101–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101int main(int argc, char *argv[])
102{
103 int ret;
104
105 if (argc > 1)
106 return T_EXIT_SKIP;
107
108 ret = test(0);
109 if (ret == T_EXIT_SKIP) {
110 return T_EXIT_SKIP;
111 } else if (ret != T_EXIT_PASS) {
112 fprintf(stderr, "test 0 failed\n");
113 return T_EXIT_FAIL;
114 }
115
116 ret = test(IORING_SETUP_DEFER_TASKRUN|IORING_SETUP_SINGLE_ISSUER);
117 if (ret == T_EXIT_FAIL) {
118 fprintf(stderr, "test defer failed\n");
119 return T_EXIT_FAIL;
120 }
121
122 return T_EXIT_PASS;
123}

Callers

nothing calls this directly

Calls 1

testFunction · 0.70

Tested by

no test coverage detected