summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp16
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-01 19:23:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-01 19:23:58 +0000
commitc7b38baf378930840d86b24765291f442dbf14ea (patch)
tree235123dc37ead8a4bd4ed5b3f5b73f0a5321f6e5 /testsuites/sptests/sp16
parent2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-c7b38baf378930840d86b24765291f442dbf14ea.tar.bz2
2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp01/sp01.doc, sp01/task1.c, sp16/sp16.doc, sp16/task5.c: Bypass RTEMS_MILLISECONDS_TO_TICKS and RTEMS_MICROSECONDS_TO_TICKS to improve coverage.
Diffstat (limited to 'testsuites/sptests/sp16')
-rw-r--r--testsuites/sptests/sp16/sp16.doc3
-rw-r--r--testsuites/sptests/sp16/task5.c9
2 files changed, 10 insertions, 2 deletions
diff --git a/testsuites/sptests/sp16/sp16.doc b/testsuites/sptests/sp16/sp16.doc
index 44853ab48e..d7882f5af4 100644
--- a/testsuites/sptests/sp16/sp16.doc
+++ b/testsuites/sptests/sp16/sp16.doc
@@ -21,3 +21,6 @@ directives:
concepts:
a. This test checks out the region manager.
+
+ b. Verifies implementation of SuperCore TOD_MICROSECONDS_TO_TICKS. Normal
+ computation in applications is via a macro at the Classic API level.
diff --git a/testsuites/sptests/sp16/task5.c b/testsuites/sptests/sp16/task5.c
index f1ada1076f..bcdf0d481a 100644
--- a/testsuites/sptests/sp16/task5.c
+++ b/testsuites/sptests/sp16/task5.c
@@ -8,7 +8,7 @@
*
* Output parameters: NONE
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -44,7 +44,12 @@ rtems_task Task5(
Put_address_from_area_1( segment_address_1 );
new_line;
- status = rtems_task_wake_after( TICKS_PER_SECOND );
+ /*
+ * Use TOD_MICROSECONDS_TO_TICKS not RTEMS_MICROSECONDS_TO_TICKS to
+ * test C implementation in SuperCore -- not macro version used
+ * everywhere else.
+ */
+ status = rtems_task_wake_after( TOD_MICROSECONDS_TO_TICKS( 1000000 ) );
directive_failed( status, "rtems_task_wake_after" );
puts( "TA5 - rtems_region_get_segment - wait on 3K segment from region 1" );