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

Function verify_buffer

test/ringbuf-read.c:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22static int no_buf_ring;
23
24static int verify_buffer(char *buf, char val)
25{
26 int i;
27
28 for (i = 0; i < BUF_SIZE; i++) {
29 if (buf[i] != val) {
30 fprintf(stderr, "got %d, wanted %d\n", buf[i], val);
31 return 1;
32 }
33 }
34
35 return 0;
36}
37
38static int test(const char *filename, int dio, int async)
39{

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected