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

Function test_shared_uneven

test/buf-ring-mshot.c:406–419  ·  view source on GitHub ↗

* Uneven test: one heavy stream (128 sends), three light streams (8 sends) */

Source from the content-addressed store, hash-verified

404 * Uneven test: one heavy stream (128 sends), three light streams (8 sends)
405 */
406static int test_shared_uneven(void)
407{
408 int sends[NR_STREAMS];
409 int i;
410
411 if (no_buf_ring || no_mshot_recv)
412 return T_EXIT_SKIP;
413
414 sends[0] = NR_SENDS_BIG;
415 for (i = 1; i < NR_STREAMS; i++)
416 sends[i] = NR_SENDS_SMALL;
417
418 return run_shared_test(NR_BUFS_BASIC, sends);
419}
420
421int main(int argc, char *argv[])
422{

Callers 1

mainFunction · 0.85

Calls 1

run_shared_testFunction · 0.85

Tested by

no test coverage detected