From 048b79955e0e2978c4fe8d1d03fb7f90ef9febcd Mon Sep 17 00:00:00 2001 From: ligd Date: Tue, 6 Sep 2022 21:00:08 +0800 Subject: [PATCH] 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 --- 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 */