diff options
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/psx02/init.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/testsuites/psxtests/psx02/init.c b/testsuites/psxtests/psx02/init.c index 3b3b0ef4a0..72592b58c7 100644 --- a/testsuites/psxtests/psx02/init.c +++ b/testsuites/psxtests/psx02/init.c @@ -120,8 +120,14 @@ void *POSIX_Init( Signal_occurred = 0; status = nanosleep ( &tv, &tr ); - assert( !status ); - + + if ( status == -1 ) { + assert( errno == EINTR ); + assert( tr.tv_nsec || tr.tv_sec ); + } else if ( !status ) { + assert( !tr.tv_nsec && !tr.tv_sec ); + } + printf( "Init: signal was %sprocessed with %d:%d time remaining\n", (Signal_occurred) ? "" : "not ", |