1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/trickle
Marian Buschsieweke eb1279005c
tests: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 09:08:01 +02:00
..
tests test: trickle: fix condition for success 2018-11-05 16:58:54 +01:00
main.c tests: Cleanup access to internal variables 2020-08-24 09:08:01 +02:00
Makefile applications: remove 'TEST_ON_CI_WHITELIST += all' 2019-08-21 12:51:17 +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.