From 3dabc2463589d7b96c32f955ed9c01d23e12d16f Mon Sep 17 00:00:00 2001 From: zhangyuan21 Date: Sat, 12 Nov 2022 19:24:32 +0800 Subject: [PATCH] ostest: reset g_restartstep when test case restart The g_restartstep value is not initialized when ostest repeated. --- testing/ostest/restart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/ostest/restart.c b/testing/ostest/restart.c index bfaaf893e..50a1ba54d 100644 --- a/testing/ostest/restart.c +++ b/testing/ostest/restart.c @@ -155,6 +155,8 @@ void restart_test(void) { int ret; + g_restartstep = 0; + /* Start the children and wait for first one to complete */ printf("\nTest task_restart()\n");