From b66c5ee0744ecf0c37785f8aa96c3d7c9cc78e89 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Wed, 18 Dec 2013 22:20:10 +0800 Subject: [PATCH] TC: always print the test result despite the wait time --- examples/kernel/tc_comm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/kernel/tc_comm.c b/examples/kernel/tc_comm.c index bf23d80550..1a62de6263 100644 --- a/examples/kernel/tc_comm.c +++ b/examples/kernel/tc_comm.c @@ -50,11 +50,6 @@ void tc_thread_entry(void* parameter) _tc_cleanup(); _tc_cleanup = RT_NULL; } - - if (_tc_stat & TC_STAT_FAILED) - rt_kprintf("TestCase[%s] failed\n", _tc_current); - else - rt_kprintf("TestCase[%s] passed\n", _tc_current); } else { @@ -65,6 +60,11 @@ void tc_thread_entry(void* parameter) _tc_cleanup = RT_NULL; } } + + if (_tc_stat & TC_STAT_FAILED) + rt_kprintf("TestCase[%s] failed\n", _tc_current); + else + rt_kprintf("TestCase[%s] passed\n", _tc_current); } } }