From ee7b47ba4e53ca6a8380b2f3fcd1719837233e01 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Thu, 20 Oct 2022 22:48:27 +0900 Subject: [PATCH] testing: ostest: Fix task_restart test Summary: - This commit fixes the task_restart test for the 2nd time execution Impact: - None Testing: - sim:ostest Signed-off-by: Masayuki Ishikawa --- testing/ostest/restart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/ostest/restart.c b/testing/ostest/restart.c index f2bc8a2f1..bfaaf893e 100644 --- a/testing/ostest/restart.c +++ b/testing/ostest/restart.c @@ -166,6 +166,9 @@ void restart_test(void) setenv(g_varname, g_varvalue, TRUE); /* Variable1=GoodValue1 */ #endif + /* Initialize global variables */ + + g_restartstep = 0; sem_init(&g_sem, 0, 0); /* Start the task */