diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index 3478cf11d..bb6441e37 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -1323,10 +1323,10 @@ test_wait_threads();]]> @@ -1879,7 +1879,7 @@ static CONDVAR_DECL(c1); * * @param[in] duration CPU pulse duration in milliseconds */ -void test_cpu_pulse(unsigned duration) { +void test_cpu_pulse(time_msecs_t duration) { systime_t start, end, now; start = chThdGetTicksX(chThdGetSelfX()); diff --git a/test/rt/source/test/rt_test_sequence_006.c b/test/rt/source/test/rt_test_sequence_006.c index 3c89d6c08..32cdb9ad7 100644 --- a/test/rt/source/test/rt_test_sequence_006.c +++ b/test/rt/source/test/rt_test_sequence_006.c @@ -100,10 +100,10 @@ static void rt_test_006_001_execute(void) { { chSysLock(); time = chVTGetSystemTimeX(); - msg = chThdSuspendTimeoutS(&tr1, TIME_MS2I(1000)); + msg = chThdSuspendTimeoutS(&tr1, TIME_MS2I(10)); chSysUnlock(); - test_assert_time_window(chTimeAddX(time, TIME_MS2I(1000)), - chTimeAddX(time, TIME_MS2I(1000) + CH_CFG_ST_TIMEDELTA + 1), + test_assert_time_window(chTimeAddX(time, TIME_MS2I(10)), + chTimeAddX(time, TIME_MS2I(10) + CH_CFG_ST_TIMEDELTA + 1), "out of time window"); test_assert(NULL == tr1, "not NULL"); test_assert(MSG_TIMEOUT == msg, "wrong returned message"); diff --git a/test/rt/source/test/rt_test_sequence_008.c b/test/rt/source/test/rt_test_sequence_008.c index 5b7a7b371..f9845cf5e 100644 --- a/test/rt/source/test/rt_test_sequence_008.c +++ b/test/rt/source/test/rt_test_sequence_008.c @@ -67,7 +67,7 @@ static CONDVAR_DECL(c1); * * @param[in] duration CPU pulse duration in milliseconds */ -void test_cpu_pulse(unsigned duration) { +void test_cpu_pulse(time_msecs_t duration) { systime_t start, end, now; start = chThdGetTicksX(chThdGetSelfX());