1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/trickle
Gaëtan Harter 4032cf73b0
tests/trickle: initialize prev_now in main
Having `prev_now` initialized to 0 breaks tests on `arduino-zero` and
`arduino-mega2560` as `xtimer_now_usec` is way bigger (72k on `arduino-zero`).

Issue found in:
* #9052 and proposed fix by ZetaR60
* https://github.com/RIOT-OS/Release-Specs/issues/62#issuecomment-387421737
2018-05-11 17:56:27 +02:00
..
tests tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
main.c tests/trickle: initialize prev_now in main 2018-05-11 17:56:27 +02:00
Makefile tests: add HIL for selected test 2018-04-09 17:50:22 +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.