mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
df9e25353b
The current test implementation wrongly assumes that the diff between two fired events (e1, e2) must always increase. That is not true, as event e1 may reside on the upper part of [I/2, I) and e2 on the lower part of [I, 2*I). This commit fixes the test to look at the actual time that was randonmly chosen from both intervals (t1, t2). Given that the intervals are doubled, t1 must always be smaller than t2. |
||
---|---|---|
.. | ||
tests | ||
main.c | ||
Makefile | ||
README.md |
Trickle Test
This test starts a trickle timer and roughly checks the diff between two
intervals to be greater than the diff of previous intervals.
After 5
callbacks, the trickle timer is reset and ends after another 7
callbacks with either [SUCCESS]
or [FAILURE]
. The application exits with
[FAILURE]
as soon as one diff is not greater than the previous diff.