From 0dc7b9a5a26030a945723569c64f5be46bd70ae1 Mon Sep 17 00:00:00 2001 From: MurphyZhao Date: Thu, 14 Feb 2019 12:00:58 +0800 Subject: [PATCH] =?UTF-8?q?[components][utest]=20utest=20=E5=BB=B6?= =?UTF-8?q?=E6=97=B6=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在使用 utest 的线程模式的时候,utest_run 命令执行完成后,finsh 会输出 `msh >`,干扰了 utest 内部的日志结构,因此默认在 utest 启动前增加延时。 Signed-off-by: MurphyZhao --- components/utilities/utest/utest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/utilities/utest/utest.c b/components/utilities/utest/utest.c index ee9710c0df..8d89e3a2a0 100644 --- a/components/utilities/utest/utest.c +++ b/components/utilities/utest/utest.c @@ -120,6 +120,8 @@ static void utest_run(const char *utest_name) { rt_size_t i = 0; + rt_thread_mdelay(1000); + LOG_I("[==========] [ utest ] started"); while(i < tc_num) {