From dff06ff60371763dca179e0d800fe6561380411f Mon Sep 17 00:00:00 2001 From: "fan.ji" Date: Thu, 27 Oct 2022 10:56:39 +0800 Subject: [PATCH] fix test_thread_yield fail bug in multiple utest loop case. Signed-off-by: fan.ji --- examples/utest/testcases/kernel/thread_tc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/utest/testcases/kernel/thread_tc.c b/examples/utest/testcases/kernel/thread_tc.c index 3c6603bd05..61c6653b93 100644 --- a/examples/utest/testcases/kernel/thread_tc.c +++ b/examples/utest/testcases/kernel/thread_tc.c @@ -259,6 +259,7 @@ static void thread6_entry(void *parameter) static void test_thread_yield(void) { rt_err_t ret_startup = -RT_ERROR; + thread5_source = 0; tid5 = rt_thread_create("thread5", thread5_entry, RT_NULL,