aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/ch_test.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-10 10:52:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-10 10:52:25 +0000
commit5e65b9fce1697a5b1dfdd53c10baa6f2e2aeaf66 (patch)
tree2d20bb1ecf6ba29a9054500900b0b2e26da8f002 /test/lib/ch_test.c
parentc7abfb0b3c6820020f8b8a5de3721baf7e8fca0e (diff)
downloadChibiOS-5e65b9fce1697a5b1dfdd53c10baa6f2e2aeaf66.tar.gz
ChibiOS-5e65b9fce1697a5b1dfdd53c10baa6f2e2aeaf66.tar.bz2
ChibiOS-5e65b9fce1697a5b1dfdd53c10baa6f2e2aeaf66.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6691 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/lib/ch_test.c')
-rw-r--r--test/lib/ch_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lib/ch_test.c b/test/lib/ch_test.c
index 9d6cb8d02..c8735ba5b 100644
--- a/test/lib/ch_test.c
+++ b/test/lib/ch_test.c
@@ -130,7 +130,8 @@ bool _test_assert_time_window(systime_t start,
systime_t end,
const char *msg) {
- return _test_assert(osalVTIsSystemTimeWithin(start, end), msg);
+ return _test_assert(osalOsIsTimeWithinX(osalOsGetSystemTimeX(), start, end),
+ msg);
}
/**
@@ -256,7 +257,7 @@ msg_t test_execute(BaseSequentialStream *stream) {
test_print(test_suite[i][j]->name);
test_println(")");
#if TEST_DELAY_BETWEEN_TESTS > 0
- osalThreadSleepMilliseconds(TEST_DELAY_BETWEEN_TESTS);
+ osalThreadSleep(OSAL_MS2ST(TEST_DELAY_BETWEEN_TESTS));
#endif
execute_test(test_suite[i][j]);
if (test_local_fail) {