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

Function test

test/accept-non-empty.c:196–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196static int test(int flags, int fixed)
197{
198 struct data d;
199 void *tret;
200 int ret;
201
202 ret = test_maccept(&d, flags, fixed);
203 if (ret) {
204 fprintf(stderr, "test conns=1 failed\n");
205 return ret;
206 }
207 if (no_more_accept)
208 return T_EXIT_SKIP;
209
210 pthread_join(d.thread, &tret);
211
212 ret = test_maccept(&d, flags, fixed);
213 if (ret) {
214 fprintf(stderr, "test conns=MAX failed\n");
215 return ret;
216 }
217
218 pthread_join(d.thread, &tret);
219 return 0;
220}
221
222int main(int argc, char *argv[])
223{

Callers 1

mainFunction · 0.70

Calls 1

test_macceptFunction · 0.85

Tested by

no test coverage detected