diff options
Diffstat (limited to 'test/rt/source/test/rt_test_sequence_004.c')
-rw-r--r-- | test/rt/source/test/rt_test_sequence_004.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rt/source/test/rt_test_sequence_004.c b/test/rt/source/test/rt_test_sequence_004.c index 67eaefdb1..9793102e1 100644 --- a/test/rt/source/test/rt_test_sequence_004.c +++ b/test/rt/source/test/rt_test_sequence_004.c @@ -101,8 +101,8 @@ static void rt_test_004_001_execute(void) { time = chVTGetSystemTimeX();
msg = chThdSuspendTimeoutS(&tr1, TIME_MS2I(1000));
chSysUnlock();
- test_assert_time_window(time + TIME_MS2I(1000),
- time + TIME_MS2I(1000) + CH_CFG_ST_TIMEDELTA + 1,
+ test_assert_time_window(chTimeAddX(time, TIME_MS2I(1000)),
+ chTimeAddX(time, TIME_MS2I(1000) + CH_CFG_ST_TIMEDELTA + 1),
"out of time window");
test_assert(NULL == tr1, "not NULL");
test_assert(MSG_TIMEOUT == msg, "wrong returned message");
|