Test case: out of time window
Posted: Sun Jul 10, 2016 3:15 pm
I'm working on nrf52 port, I've got one test case failing with "out of time window" (3.2)
Test is starting at time 3337ms, ending at 4337ms, which seems to "nearly" meet the 1000 ms timeout requirerment of the test.
Test is using
I haven't set CH_CFG_ST_TIMEDELTA as i'm not runnning in timeless mode.
test_assert_time_window, is implemented using chVTIsSystemTimeWithinX which translate into
Is the test_assert_time_window too restrictive using " < " or do I have really a problem with the port?
thanks
Test is starting at time 3337ms, ending at 4337ms, which seems to "nearly" meet the 1000 ms timeout requirerment of the test.
Test is using
Code: Select all
test_assert_time_window(time + MS2ST(1000),
time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA,
"out of time window");
I haven't set CH_CFG_ST_TIMEDELTA as i'm not runnning in timeless mode.
test_assert_time_window, is implemented using chVTIsSystemTimeWithinX which translate into
Code: Select all
(bool)((systime_t)(time - start) < (systime_t)(end - start));
Is the test_assert_time_window too restrictive using " < " or do I have really a problem with the port?
thanks