Skip to content

Commit 048b799

Browse files
GUIDINGLIxiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent e6e4661 commit 048b799

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testing/ostest/sighand.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,11 @@ void sighand_test(void)
346346
/* Wait a bit */
347347

348348
FFLUSH();
349-
sleep(2);
349+
status = sleep(2);
350+
while (status)
351+
{
352+
status = sleep(status);
353+
}
350354

351355
/* Then check the result */
352356

0 commit comments

Comments
 (0)