summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-14 17:46:08 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-14 17:46:08 +0000
commitfbea3dfbb1820c51b665fe8dc863d5a78e07f51d (patch)
treed8beb6045ab4f7f6dec60115f7d6e14d2117bf64 /testsuites/libtests
parent2007-12-14 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-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')
-rw-r--r--testsuites/libtests/ChangeLog5
-rw-r--r--testsuites/libtests/rtmonuse/init.c13
-rw-r--r--testsuites/libtests/rtmonuse/task1.c6
3 files changed, 19 insertions, 5 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog
index 26293492cc..af0224274b 100644
--- a/testsuites/libtests/ChangeLog
+++ b/testsuites/libtests/ChangeLog
@@ -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
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" );
}
diff --git a/testsuites/libtests/rtmonuse/task1.c b/testsuites/libtests/rtmonuse/task1.c
index b69bd412e7..8284caa3cc 100644
--- a/testsuites/libtests/rtmonuse/task1.c
+++ b/testsuites/libtests/rtmonuse/task1.c
@@ -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 );