fix test_thread_yield fail bug in multiple utest loop case.

Signed-off-by: fan.ji <fan.ji@weiheng-tech.com>
This commit is contained in:
fan.ji 2022-10-27 10:56:39 +08:00 committed by Man, Jianting (Meco)
parent e01776ea76
commit dff06ff603
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ static void thread6_entry(void *parameter)
static void test_thread_yield(void) static void test_thread_yield(void)
{ {
rt_err_t ret_startup = -RT_ERROR; rt_err_t ret_startup = -RT_ERROR;
thread5_source = 0;
tid5 = rt_thread_create("thread5", tid5 = rt_thread_create("thread5",
thread5_entry, thread5_entry,
RT_NULL, RT_NULL,