提交 bf640015 编写于 作者: G Grissiom

TC: clear the TC_STAT_RUNNING flag when tc forgot to do so

TCs are supposed to exit with the TC_STAT_RUNNING cleared. If it forgot
to do this, do it by ourselves.
上级 52db5cfb
...@@ -52,6 +52,15 @@ void tc_thread_entry(void* parameter) ...@@ -52,6 +52,15 @@ void tc_thread_entry(void* parameter)
_tc_cleanup = RT_NULL; _tc_cleanup = RT_NULL;
} }
if (_tc_stat & TC_STAT_RUNNING)
{
rt_kprintf("TestCase[%s] exit with stat TC_STAT_RUNNING."
" Please fix the TC.\n",
_tc_current);
/* If the TC forgot to clear the flag, we do it. */
_tc_stat &= ~TC_STAT_RUNNING;
}
if (_tc_stat & TC_STAT_FAILED) if (_tc_stat & TC_STAT_FAILED)
rt_kprintf("TestCase[%s] failed\n", _tc_current); rt_kprintf("TestCase[%s] failed\n", _tc_current);
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册