diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-14 17:46:08 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-14 17:46:08 +0000 |
commit | fbea3dfbb1820c51b665fe8dc863d5a78e07f51d (patch) | |
tree | d8beb6045ab4f7f6dec60115f7d6e14d2117bf64 /testsuites/libtests/rtmonuse/init.c | |
parent | 2007-12-14 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-fbea3dfbb1820c51b665fe8dc863d5a78e07f51d.tar.bz2 |
2007-12-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtmonuse/init.c, rtmonuse/task1.c: Add period which is unused to
exericise another path in the period statistics code.
Diffstat (limited to 'testsuites/libtests/rtmonuse/init.c')
-rw-r--r-- | testsuites/libtests/rtmonuse/init.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/testsuites/libtests/rtmonuse/init.c b/testsuites/libtests/rtmonuse/init.c index a0b9201393..5a5770ca4a 100644 --- a/testsuites/libtests/rtmonuse/init.c +++ b/testsuites/libtests/rtmonuse/init.c @@ -30,9 +30,18 @@ rtems_task Init( { uint32_t index; rtems_status_code status; + rtems_id rmid; + rtems_name period; puts( "\n\n*** RATE MONOTONIC PERIOD STATISTICS TEST ***" ); + period = rtems_build_name( 'I', 'G', 'N', 'R' ); + status = rtems_rate_monotonic_create( period, &rmid ); + directive_failed( status, "rtems_rate_monotonic_create" ); + put_name( Task_name[ argument ], FALSE ); + printf( "- rtems_rate_monotonic_create id = 0x%08x (stays inactive)\n", rmid ); + + Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ); Task_name[ 2 ] = rtems_build_name( 'T', 'A', '2', ' ' ); Task_name[ 3 ] = rtems_build_name( 'T', 'A', '3', ' ' ); @@ -62,6 +71,6 @@ rtems_task Init( Count.count[ 4 ] = 0; Count.count[ 5 ] = 0; - status = rtems_task_delete( RTEMS_SELF ); - directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); + status = rtems_task_suspend( RTEMS_SELF ); + directive_failed( status, "rtems_task_suspend of RTEMS_SELF" ); } |