41struct pt unit_test_pt;
52 printf(
"\nUnit test: %s\n", utp->descr);
53 printf(
"Result: %s\n", utp->passed ?
"success" :
"failure");
54 printf(
"Exit point: %s:%u\n", utp->test_file, utp->exit_line);
55 printf(
"Assertions executed: %"PRIu32
"\n", utp->assertions);
56 printf(
"Start: %"CLOCK_PRI
"\n", utp->start);
57 printf(
"End: %"CLOCK_PRI
"\n", utp->end);
58 printf(
"Duration: %"CLOCK_PRI
" ticks\n", utp->end - utp->start);
59 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.