1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

7 Commits

Author SHA1 Message Date
Marian Buschsieweke
7ea0cab22e
tests/ztimer_periodic: improve output and relax on native
- Explain the reason on why the test fails if it fails
- Relax offset for ZTIMER_USEC on native, as this depends on the jitter
  emitted by the non-realtime OS native is running on

fixes issue #18490
2022-08-21 13:12:43 +02:00
Benjamin Valentin
64bd80d389 ztimer_periodic: make callback function return bool
The callback function of `ztimer_periodic` is only expected to have
two states.
So let it return `true` if the timer should keep repeating, `false`
otherwise.
2021-12-08 00:10:55 +01:00
Hauke Petersen
f877ed9205 tests/ztimer_periodic: rename counter macro
The macro with name `N` is used by the MSP430 CPU macros and
triggers a compilation error if this example is build for that
platform. So this commit renames the repeat counter limit from
`N` to `REAPEAT`.
2021-08-25 08:01:05 +02:00
Fabian Hüßler
258681f012 tests/ztimer_periodic: fix name clash with rp2040 vendor header 2021-08-09 10:45:35 +02:00
Marian Buschsieweke
258d384fec
tests/ztimer_periodic: iterate over clocks
Instead of only testing for `ZTIMER_MSEC`, iterate over a list of
clocks and run the test for each. The reasoning is that this test
does not only test `ztimer_periodic`, but also that the used clock
backend operates correctly in a typical use case.
2021-06-16 13:11:13 +02:00
Hauke Petersen
d54e08fb8a tests/ztimer_periodic: add call to ztimer_is_set() 2021-01-18 17:50:50 +01:00
7b30777429 tests/ztimer_periodic: initial commit 2020-09-29 23:04:39 +02:00