summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spcbssched03
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-14 11:08:01 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-17 10:05:07 -0500
commit3c69c467acf7c4ecb31f776fad8f934b6e0d4ca5 (patch)
tree7e1ae7405378cded0fa02a73ca17e5ecf07769bb /testsuites/sptests/spcbssched03
parenttests misc: Disable deprecated method usage warning when intentional (diff)
downloadrtems-3c69c467acf7c4ecb31f776fad8f934b6e0d4ca5.tar.bz2
sptests misc: Update to not use deprecated methods
Diffstat (limited to 'testsuites/sptests/spcbssched03')
-rw-r--r--testsuites/sptests/spcbssched03/tasks_aperiodic.c6
-rw-r--r--testsuites/sptests/spcbssched03/tasks_periodic.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/testsuites/sptests/spcbssched03/tasks_aperiodic.c b/testsuites/sptests/spcbssched03/tasks_aperiodic.c
index 90684b4b93..efb6dce157 100644
--- a/testsuites/sptests/spcbssched03/tasks_aperiodic.c
+++ b/testsuites/sptests/spcbssched03/tasks_aperiodic.c
@@ -31,15 +31,15 @@ rtems_task Tasks_Aperiodic(
status = rtems_task_wake_after( 2 + Phases[argument] );
directive_failed( status, "rtems_task_wake_after" );
- rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start);
+ start = rtems_clock_get_ticks_since_boot();
printf("AT%" PRIdPTR "-S ticks:%d\n", argument, start);
/* active computing */
while(FOREVER) {
- rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
+ now = rtems_clock_get_ticks_since_boot();
if (now >= start + Execution[argument]) break;
}
- rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop);
+ stop = rtems_clock_get_ticks_since_boot();
printf("P%" PRIdPTR "-F ticks:%d\n", argument, stop);
/* delete SELF */
diff --git a/testsuites/sptests/spcbssched03/tasks_periodic.c b/testsuites/sptests/spcbssched03/tasks_periodic.c
index 1e310b42e2..37b15b4712 100644
--- a/testsuites/sptests/spcbssched03/tasks_periodic.c
+++ b/testsuites/sptests/spcbssched03/tasks_periodic.c
@@ -98,7 +98,7 @@ rtems_task Tasks_Periodic(
if (rtems_rate_monotonic_period(rmid, Periods[argument])==RTEMS_TIMEOUT)
printf("P%" PRIdPTR " - Deadline miss\n", argument);
- rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start);
+ start = rtems_clock_get_ticks_since_boot();
printf("P%" PRIdPTR "-S ticks:%d\n", argument, start);
if ( start >= 2*HP_LENGTH ) break; /* stop */
@@ -134,14 +134,14 @@ rtems_task Tasks_Periodic(
/* active computing */
while(FOREVER) {
- rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
+ now = rtems_clock_get_ticks_since_boot();
if ( argument == 4 && !Violating_task[ argument ] &&
(now >= start + Execution[argument]))
break;
if ( argument != 4 && (now >= start + Execution[argument]) )
break;
}
- rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop);
+ stop = rtems_clock_get_ticks_since_boot();
printf("P%" PRIdPTR "-F ticks:%d\n", argument, stop);
}