51 printf(
"\nUnit test: %s\n", utp->descr);
52 printf(
"Result: %s\n", utp->passed ?
"success" :
"failure");
53 printf(
"Exit point: %s:%u\n", utp->test_file, utp->exit_line);
54 printf(
"Assertions executed: %"PRIu32
"\n", utp->assertions);
55 printf(
"Start: %"PRIu64
"\n", (uint64_t)utp->start);
56 printf(
"End: %"PRIu64
"\n", (uint64_t)utp->end);
57 printf(
"Duration: %"PRId64
" ticks\n", (int64_t)(utp->end - utp->start));
58 printf(
"Ticks per second: %u\n", (
unsigned)
CLOCK_SECOND);
#define CLOCK_SECOND
A second, measured in system clock time.
The unit_test structure describes the results of a unit test.
void unit_test_print_report(const unit_test_t *utp)
Print the results of a unit test.
A tool for unit testing Contiki-NG software.