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 <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-09-06 21:00:08 +08:00 committed by Xiang Xiao
parent e6e4661131
commit 048b79955e

View File

@ -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 */