You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/15 16:07:45 UTC

[incubator-nuttx-apps] branch master updated: ostest: reset g_restartstep when test case restart

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 3dabc2463 ostest: reset g_restartstep when test case restart
3dabc2463 is described below

commit 3dabc2463589d7b96c32f955ed9c01d23e12d16f
Author: zhangyuan21 <zh...@xiaomi.com>
AuthorDate: Sat Nov 12 19:24:32 2022 +0800

    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");