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, (
unsigned)utp->exit_line);
54 printf(
"Start: %u\n", (
unsigned)utp->start);
55 printf(
"End: %u\n", (
unsigned)utp->end);
56 printf(
"Duration: %u\n", (
unsigned)(utp->end - utp->start));
57 printf(
"Ticks per second: %u\n", (
unsigned)RTIMER_SECOND);
A tool for unit testing Contiki software.
void unit_test_print_report(const unit_test_t *utp)
Print the results of a unit test.
The unit_test structure describes the results of a unit test.