浏览代码

TC: always print the test result despite the wait time

Grissiom 11 年之前
父节点
当前提交
b66c5ee074
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      examples/kernel/tc_comm.c

+ 5 - 5
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);
 			}
 		}
 	}