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

Function test_basic_many

test/file-register.c:334–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static int test_basic_many(struct io_uring *ring)
335{
336 int *files;
337 int ret;
338
339 files = open_files(768, 0, 0);
340 ret = io_uring_register_files(ring, files, 768);
341 if (ret) {
342 fprintf(stderr, "%s: register %d\n", __FUNCTION__, ret);
343 goto err;
344 }
345 ret = io_uring_unregister_files(ring);
346 if (ret) {
347 fprintf(stderr, "%s: unregister %d\n", __FUNCTION__, ret);
348 goto err;
349 }
350 close_files(files, 768, 0);
351 return 0;
352err:
353 close_files(files, 768, 0);
354 return 1;
355}
356
357static int test_basic(struct io_uring *ring, int fail)
358{

Callers 1

mainFunction · 0.85

Calls 4

io_uring_register_filesFunction · 0.85
open_filesFunction · 0.70
close_filesFunction · 0.70

Tested by

no test coverage detected