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/09/06 17:18:20 UTC

[incubator-nuttx-apps] branch master updated: ostest: fix sighand_test report error

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 048b79955 ostest: fix sighand_test report error
048b79955 is described below

commit 048b79955e0e2978c4fe8d1d03fb7f90ef9febcd
Author: ligd <li...@xiaomi.com>
AuthorDate: Tue Sep 6 21:00:08 2022 +0800

    ostest: fix sighand_test report error
    
    sighand_test: ERROR waiter task did not exit
    
    reason:
    sleep will be interrupt by signal
    
    Signed-off-by: ligd <li...@xiaomi.com>
---
 testing/ostest/sighand.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/testing/ostest/sighand.c b/testing/ostest/sighand.c
index 890ba7dc2..e4a79cd71 100644
--- a/testing/ostest/sighand.c
+++ b/testing/ostest/sighand.c
@@ -346,7 +346,11 @@ void sighand_test(void)
   /* Wait a bit */
 
   FFLUSH();
-  sleep(2);
+  status = sleep(2);
+  while (status)
+    {
+      status = sleep(status);
+    }
 
   /* Then check the result */