summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-12 20:50:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-12 20:50:26 +0000
commitde7adafc8c6f05511a9e9130564f0eb0a63a125f (patch)
tree00be25b6af10f3cd032c194c174c525690663291 /testsuites/libtests
parent2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-de7adafc8c6f05511a9e9130564f0eb0a63a125f.tar.bz2
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloctest/task1.c, stackchk/task1.c: Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new rtems_clock_get_ticks_per_second().
Diffstat (limited to 'testsuites/libtests')
-rw-r--r--testsuites/libtests/ChangeLog6
-rw-r--r--testsuites/libtests/malloctest/task1.c5
-rw-r--r--testsuites/libtests/stackchk/task1.c5
3 files changed, 12 insertions, 4 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog
index a53884f913..67c67d1c6b 100644
--- a/testsuites/libtests/ChangeLog
+++ b/testsuites/libtests/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * malloctest/task1.c, stackchk/task1.c: Eliminate test routines
+ TICKS_PER_SECOND and get_ticks_per_second() in favor of new
+ rtems_clock_get_ticks_per_second().
+
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/task1.c, termios/init.c: Convert calls to legacy routine
diff --git a/testsuites/libtests/malloctest/task1.c b/testsuites/libtests/malloctest/task1.c
index 8da497a671..fa9cef4640 100644
--- a/testsuites/libtests/malloctest/task1.c
+++ b/testsuites/libtests/malloctest/task1.c
@@ -3,7 +3,7 @@
* This set of three tasks do some simple task switching for about
* 15 seconds and then call a routine to "blow the stack".
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -57,7 +57,8 @@ rtems_task Task_1_through_5(
memset( mem_ptr, mem_amt, mem_amt );
malloc_report_statistics();
malloc_walk(1,FALSE);
- status = rtems_task_wake_after( task_number( tid ) * 1 * TICKS_PER_SECOND/4 );
+ status = rtems_task_wake_after(
+ task_number( tid ) * 1 * rtems_clock_get_ticks_per_second()/4 );
for (i=0; i < mem_amt; i++)
{
if ( mem_ptr[i] != (mem_amt & 0xff))
diff --git a/testsuites/libtests/stackchk/task1.c b/testsuites/libtests/stackchk/task1.c
index 632b539ea4..69114389a9 100644
--- a/testsuites/libtests/stackchk/task1.c
+++ b/testsuites/libtests/stackchk/task1.c
@@ -3,7 +3,7 @@
* This set of three tasks do some simple task switching for about
* 15 seconds and then call a routine to "blow the stack".
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -37,7 +37,8 @@ rtems_task Task_1_through_3(
put_name( Task_name[ task_number( tid ) ], FALSE );
print_time( " - rtems_clock_get_tod - ", &time, "\n" );
- status = rtems_task_wake_after( task_number( tid ) * 5 * TICKS_PER_SECOND );
+ status = rtems_task_wake_after(
+ task_number( tid ) * 5 * rtems_clock_get_ticks_per_second() );
directive_failed( status, "rtems_task_wake_after" );
}
}