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.
This commit is contained in:
Joel Sherrill
2007-12-14 17:46:08 +00:00
parent 6bc19a148a
commit fbea3dfbb1
3 changed files with 19 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
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.
2007-12-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* malloctest/init.c: Add some primitive testing of realloc() which also

View File

@@ -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" );
}

View File

@@ -32,9 +32,9 @@ rtems_task Task_1_through_5(
{
rtems_id rmid;
rtems_id test_rmid;
uint32_t index;
uint32_t pass;
uint32_t failed;
uint32_t index;
uint32_t pass;
uint32_t failed;
rtems_status_code status;
status = rtems_rate_monotonic_create( argument, &rmid );