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

Function time_pass

test/min-timeout-wait.c:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23};
24
25static int time_pass(struct timeval *start, unsigned long min_t,
26 unsigned long max_t, const char *name)
27{
28 unsigned long elapsed;
29
30 elapsed = mtime_since_now(start);
31 if (elapsed < min_t || elapsed > max_t) {
32 fprintf(stderr, "%s fails time check\n", name);
33 fprintf(stderr, " elapsed=%lu, min=%lu, max=%lu\n", elapsed,
34 min_t, max_t);
35 return T_EXIT_FAIL;
36 }
37 return T_EXIT_PASS;
38}
39
40static void *pipe_write(void *data)
41{

Callers 2

__test_writesFunction · 0.85
__test_nopFunction · 0.85

Calls 1

mtime_since_nowFunction · 0.70

Tested by

no test coverage detected