summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx02/task.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-11 16:04:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-11 16:04:25 +0000
commitfb39f191da0ee2ae9e00deedc30ffe1485b1855c (patch)
treed42c5eb2d2dfdf5be11177f1bbf0b48dabfaae0b /testsuites/psxtests/psx02/task.c
parentInterruptible by signals state was added to the STATES_BLOCKED set. It (diff)
downloadrtems-fb39f191da0ee2ae9e00deedc30ffe1485b1855c.tar.bz2
modified to test pthread_kill() to self and pthread_kill() to a blocked
thread. nanosleep() can be interrupted and return the time remaining.
Diffstat (limited to 'testsuites/psxtests/psx02/task.c')
-rw-r--r--testsuites/psxtests/psx02/task.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/psxtests/psx02/task.c b/testsuites/psxtests/psx02/task.c
index 354a32bb0e..410ee32346 100644
--- a/testsuites/psxtests/psx02/task.c
+++ b/testsuites/psxtests/psx02/task.c
@@ -31,12 +31,12 @@ void *Task_1_through_3(
int status;
for ( i=0 ; i<5 ; i++ ) {
- seconds = sleep( 1 );
- assert( !seconds );
-
print_current_time( "Task1: ", "" );
status = pthread_kill( Init_id, SIGUSR1 );
assert( !status );
+
+ seconds = sleep( 1 );
+ assert( !seconds );
}
puts( "*** END OF POSIX TEST 2 ***" );
exit( 0 );