diff --git a/examples/kernel/semaphore_priority.c b/examples/kernel/semaphore_priority.c index 766c25c51410f8440885584dbdd1d3e7ec1e448b..4ee8d889e3924bf6dc5e8cec7e704cf4499bec1b 100644 --- a/examples/kernel/semaphore_priority.c +++ b/examples/kernel/semaphore_priority.c @@ -101,9 +101,9 @@ static void _tc_cleanup() rt_thread_delete(worker); if (t1_count > t2_count) - tc_stat(TC_STAT_FAILED); + tc_done(TC_STAT_FAILED); else - tc_stat(TC_STAT_PASSED); + tc_done(TC_STAT_PASSED); /* unlock scheduler */ rt_exit_critical();