diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-01-29 18:20:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-01-29 18:20:59 +0000 |
commit | ef70d9b652e75326f534d7e66bb3e0bcc55b3b58 (patch) | |
tree | b924708ca07655b2f7e8da8e740314c121b723eb /testsuites/sptests/sp31/init.c | |
parent | 2002-01-29 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-ef70d9b652e75326f534d7e66bb3e0bcc55b3b58.tar.bz2 |
2001-01-29 Joel Sherrill <joel@OARcorp.com>
* Fixed bug where resetting a timer that was not at the head
of one of the task timer chains resulted in the Timer Server
task waking up too far in the future.
* Added rtems_timer_get_information() directive to support testing.
* sp31/init.c, sp31/system.h, sp31/task1.c: Modified to test for
above condition.
Diffstat (limited to 'testsuites/sptests/sp31/init.c')
-rw-r--r-- | testsuites/sptests/sp31/init.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuites/sptests/sp31/init.c b/testsuites/sptests/sp31/init.c index 3359d3294d..b2a87d5766 100644 --- a/testsuites/sptests/sp31/init.c +++ b/testsuites/sptests/sp31/init.c @@ -47,6 +47,7 @@ rtems_task Init( Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ); Timer_name[ 1 ] = rtems_build_name( 'T', 'M', '1', ' ' ); + Timer_name[ 2 ] = rtems_build_name( 'T', 'M', '2', ' ' ); status = rtems_task_create( Task_name[ 1 ], @@ -64,9 +65,13 @@ rtems_task Init( puts( "INIT - rtems_timer_create - creating timer 1" ); status = rtems_timer_create( Timer_name[ 1 ], &Timer_id[ 1 ] ); directive_failed( status, "rtems_timer_create" ); - printf( "INIT - timer 1 has id (0x%x)\n", Timer_id[ 1 ] ); + puts( "INIT - rtems_timer_create - creating timer 2" ); + status = rtems_timer_create( Timer_name[ 2 ], &Timer_id[ 2 ] ); + directive_failed( status, "rtems_timer_create" ); + printf( "INIT - timer 2 has id (0x%x)\n", Timer_id[ 2 ] ); + status = rtems_task_delete( RTEMS_SELF ); directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); } |