1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/trickle
Cenk Gündoğan df9e25353b test: trickle: fix condition for success
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.
2018-11-05 16:58:54 +01:00
..
tests test: trickle: fix condition for success 2018-11-05 16:58:54 +01:00
main.c test: trickle: fix condition for success 2018-11-05 16:58:54 +01:00
Makefile tests: remove obsolete local test targets 2018-09-07 15:13:08 +02:00
README.md tests: trickle: extend trickle test to print SUCCESS/FAILURE 2017-10-30 18:53:29 +01:00

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.