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

Function test_shared_basic

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

* Basic test: 4 streams sharing 32 buffers, moderate load */

Source from the content-addressed store, hash-verified

373 * Basic test: 4 streams sharing 32 buffers, moderate load
374 */
375static int test_shared_basic(void)
376{
377 int sends[NR_STREAMS];
378 int i;
379
380 for (i = 0; i < NR_STREAMS; i++)
381 sends[i] = NR_SENDS;
382
383 return run_shared_test(NR_BUFS_BASIC, sends);
384}
385
386/*
387 * Exhaustion test: 4 streams sharing only 8 buffers under heavy load

Callers 1

mainFunction · 0.85

Calls 1

run_shared_testFunction · 0.85

Tested by

no test coverage detected