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

Function main

test/fsync.c:190–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190int main(int argc, char *argv[])
191{
192 struct io_uring ring;
193 int ret;
194
195 if (argc > 1)
196 return T_EXIT_SKIP;
197
198 ret = io_uring_queue_init(8, &ring, 0);
199 if (ret) {
200 fprintf(stderr, "ring setup failed\n");
201 return T_EXIT_FAIL;
202
203 }
204
205 ret = test_single_fsync(&ring);
206 if (ret) {
207 fprintf(stderr, "test_single_fsync failed\n");
208 return ret;
209 }
210
211 ret = test_barrier_fsync(&ring);
212 if (ret) {
213 fprintf(stderr, "test_barrier_fsync failed\n");
214 return ret;
215 }
216
217 ret = test_sync_file_range(&ring);
218 if (ret) {
219 fprintf(stderr, "test_sync_file_range failed\n");
220 return ret;
221 }
222
223 return T_EXIT_PASS;
224}

Callers

nothing calls this directly

Calls 4

io_uring_queue_initFunction · 0.85
test_barrier_fsyncFunction · 0.85
test_sync_file_rangeFunction · 0.85
test_single_fsyncFunction · 0.70

Tested by

no test coverage detected