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

Function t_error

test/helpers.c:307–319  ·  view source on GitHub ↗

* Implementation of error(3), prints an error message and exits. */

Source from the content-addressed store, hash-verified

305 * Implementation of error(3), prints an error message and exits.
306 */
307void t_error(int status, int errnum, const char *format, ...)
308{
309 va_list args;
310 va_start(args, format);
311
312 vfprintf(stderr, format, args);
313 if (errnum)
314 fprintf(stderr, ": %s", strerror(errnum));
315
316 fprintf(stderr, "\n");
317 va_end(args);
318 exit(status);
319}
320
321unsigned long long mtime_since(const struct timeval *s, const struct timeval *e)
322{

Callers 15

test_prep_sockFunction · 0.70
do_testFunction · 0.70
resolve_hostnameFunction · 0.70
do_listenFunction · 0.70
write_ro_paramsFunction · 0.70
submit_and_wait_oneFunction · 0.70
transfer_bytesFunction · 0.70
test_exit_with_inflightFunction · 0.70
test_abnormal_exitFunction · 0.70
setupFunction · 0.70
__t_toggle_nonblockFunction · 0.70
try_submitFunction · 0.70

Calls

no outgoing calls

Tested by 4

test_prep_sockFunction · 0.56
test_exit_with_inflightFunction · 0.56
test_abnormal_exitFunction · 0.56
test_regvec_cmdFunction · 0.56