summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-05 08:05:54 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-07 14:22:00 +0100
commit03e86553d2839c123fa79ed382ea3ee10bede78c (patch)
tree50ec0e07dffc2889bd292ffcca81bcb9e7017114 /testsuites/sptests
parentpsxtests/Makefile.am: Fix ticket number for ucontext.h (diff)
downloadrtems-03e86553d2839c123fa79ed382ea3ee10bede78c.tar.bz2
tests: Fix rtems_test_spin_until_next_tick()
This bug surfaced due to sporadic failures in sptimecounter02. Adjust rtems_test_spin_for_ticks() to include the partial tick in the argument value.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/spedfsched04/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/sptests/spedfsched04/init.c b/testsuites/sptests/spedfsched04/init.c
index e751e2425e..8625f85a86 100644
--- a/testsuites/sptests/spedfsched04/init.c
+++ b/testsuites/sptests/spedfsched04/init.c
@@ -65,6 +65,8 @@ static rtems_task Task(
status = rtems_rate_monotonic_create( Task_name[ argument ], &RM_period );
directive_failed( status, "rtems_rate_monotonic_create" );
+ rtems_test_spin_until_next_tick();
+
while ( FOREVER ) {
status = rtems_rate_monotonic_period( RM_period, Periods[ argument ] );