-
Notifications
You must be signed in to change notification settings - Fork 2.1k
misc issues with tests/trickle #9052
Copy link
Copy link
Open
Labels
Area: timersArea: timer subsystemsArea: timer subsystemsPlatform: AVRPlatform: This PR/issue effects AVR-based platformsPlatform: This PR/issue effects AVR-based platformsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)
Metadata
Metadata
Assignees
Labels
Area: timersArea: timer subsystemsArea: timer subsystemsPlatform: AVRPlatform: This PR/issue effects AVR-based platformsPlatform: This PR/issue effects AVR-based platformsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
While running tests/trickle for #8904 on mega-xplained, I have run into a number of different issues. One issue is that prev_now is not being initialized properly in main (it assumes xtimer_now_usec is zero when main starts, which is not the case). This is easily fixed by adding
prev_now = xtimer_now_usec();to the beginning of main. There are also a number of problems where it hangs at various points.Steps to reproduce the issue
Run tests/trickle with the following variations:
prev_now = xtimer_now_usec();prev_now = xtimer_now_usec();Expected results
tests/trickle runs, printing 5 messages after
[START], and then 7 messages after[TRICKLE_RESET], and then prints[SUCCESS].Actual results
[TRICKLE_RESET][TRICKLE_RESET]Versions
Board: mega-xplained