Skip to content

misc issues with tests/trickle #9052

@ZetaR60

Description

@ZetaR60

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:

Expected results

tests/trickle runs, printing 5 messages after [START], and then 7 messages after [TRICKLE_RESET], and then prints [SUCCESS].

Actual results

Versions

Board: mega-xplained

Installed compiler toolchains 
-----------------------------
             native gcc: missing
      arm-none-eabi-gcc: missing
                avr-gcc: avr-gcc (Fedora 7.2.0-1.fc27) 7.2.0
       mips-mti-elf-gcc: missing
             msp430-gcc: missing
   riscv-none-embed-gcc: missing
                  clang: missing

Installed compiler libs
-----------------------
   arm-none-eabi-newlib: missing
    mips-mti-elf-newlib: missing
riscv-none-embed-newlib: missing
               avr-libc: "2.0.0" ("20150208")

Installed development tools
---------------------------
                  cmake: cmake version 3.11.0
               cppcheck: missing
                doxygen: missing
                 flake8: missing
                    git: git version 2.14.2
             coccinelle: missing

Metadata

Metadata

Assignees

Labels

Area: timersArea: timer subsystemsPlatform: AVRPlatform: This PR/issue effects AVR-based platformsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions