Page 1 of 1

Test case: out of time window

Posted: Sun Jul 10, 2016 3:15 pm
by sdalu
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

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

Re: Test case: out of time window

Posted: Sun Jul 10, 2016 3:50 pm
by Giovanni
I see, don't worry, it is a problem with the test, I will change it.

You port is likely OK if other tests pass.

Giovanni

Re: Test case: out of time window

Posted: Mon Jul 11, 2016 3:20 pm
by Giovanni
Hi,

I committed a fix for that test case, it should be fine now.

Giovanni