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

Function test_sequence

test/vec-regbuf.c:333–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331};
332
333static int test_sequence(struct buf_desc *bd, unsigned nr, struct work *ws)
334{
335 int i, ret;
336 int cqe_ret;
337
338 reinit_ring(bd);
339
340 for (i = 0; i < nr; i++) {
341 ret = test_vec(bd, ws[i].vecs, ws[i].nr_vecs, false, &cqe_ret);
342 if (ret) {
343 fprintf(stderr, "sequence failed, idx %i/%i\n", i, nr);
344 return ret;
345 }
346 }
347 return 0;
348}
349
350static void test_basic(struct buf_desc *bd)
351{

Callers 1

test_basicFunction · 0.85

Calls 2

reinit_ringFunction · 0.85
test_vecFunction · 0.85

Tested by

no test coverage detected