Skip to content

Commit 0dc7b9a

Browse files
committed
[components][utest] utest 延时启动
在使用 utest 的线程模式的时候,utest_run 命令执行完成后,finsh 会输出 `msh >`,干扰了 utest 内部的日志结构,因此默认在 utest 启动前增加延时。 Signed-off-by: MurphyZhao <[email protected]>
1 parent 82f022f commit 0dc7b9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/utilities/utest/utest.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ static void utest_run(const char *utest_name)
120120
{
121121
rt_size_t i = 0;
122122

123+
rt_thread_mdelay(1000);
124+
123125
LOG_I("[==========] [ utest ] started");
124126
while(i < tc_num)
125127
{

0 commit comments

Comments
 (0)