50 printf(
"\nUnit test: %s\n", utp->descr);
51 printf(
"Result: %s\n", utp->result == unit_test_failure ?
52 "failure" :
"success");
53 printf(
"Exit point: %s:%u\n", utp->test_file, utp->exit_line);
54 printf(
"Start: %u\n", utp->start);
55 printf(
"End: %u\n", utp->end);
56 printf(
"Duration: %u\n", utp->end - utp->start);
57 printf(
"Ticks per second: %u\n", RTIMER_SECOND);
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 software.