diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-10-30 21:54:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-10-30 21:54:45 +0000 |
commit | 97005786d89fd7a57b5fe82f713cea739916f3da (patch) | |
tree | cfff15a6bc93114480ecd20f6afddde3dcd74470 /testsuites/sptests/sp04/task1.c | |
parent | reordered test cases from simple to complex (diff) | |
download | rtems-97005786d89fd7a57b5fe82f713cea739916f3da.tar.bz2 |
SPARC port passes all tests
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/sp04/task1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/sptests/sp04/task1.c b/testsuites/sptests/sp04/task1.c index 117f5eaa80..671ae5483d 100644 --- a/testsuites/sptests/sp04/task1.c +++ b/testsuites/sptests/sp04/task1.c @@ -30,8 +30,8 @@ rtems_task Task_1( rtems_mode previous_mode; rtems_time_of_day time; rtems_status_code status; - rtems_unsigned32 start; - rtems_unsigned32 end; + rtems_unsigned32 start_time; + rtems_unsigned32 end_time; puts( "TA1 - rtems_task_suspend - on Task 2" ); status = rtems_task_suspend( Task_id[ 2 ] ); @@ -41,16 +41,16 @@ rtems_task Task_1( status = rtems_task_suspend( Task_id[ 3 ] ); directive_failed( status, "rtems_task_suspend of TA3" ); - status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &start ); + status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &start_time ); directive_failed( status, "rtems_clock_get" ); puts( "TA1 - killing time" ); for ( ; ; ) { - status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &end ); + status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &end_time ); directive_failed( status, "rtems_clock_get" ); - if ( end > (start + 2) ) + if ( end_time > (start_time + 2) ) break; } |