summaryrefslogtreecommitdiffstats
path: root/testsuites/support/include
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/support/include
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/support/include')
-rw-r--r--testsuites/support/include/test_support.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/support/include/test_support.h b/testsuites/support/include/test_support.h
index 017444ca9d..9c30b3967e 100644
--- a/testsuites/support/include/test_support.h
+++ b/testsuites/support/include/test_support.h
@@ -11,6 +11,7 @@
#define __TEST_SUPPORT_h
#include <stdarg.h>
+#include <rtems.h>
#ifdef __cplusplus
extern "C" {
@@ -28,9 +29,10 @@ const char *Get_Too_Long_Name(void);
const char *Get_Longest_Name(void);
/*
- * Spin for specified number of ticks.
+ * Spin for specified number of ticks. The first tick we spin through is a
+ * partial one.
*/
-void rtems_test_spin_for_ticks(int ticks);
+void rtems_test_spin_for_ticks(rtems_interval ticks);
/*
* Spin until the next clock tick