zephyr/tests/kernel/timer
Nicolas Pitre 141299fb80 tests: timer_behavior: better cope with timer wrap-arounds
Commit a1d21ca69b ("tests: timer_behavior: don't fail the test with
timer wrap-arounds") simply ignored the total time validation whenever
any rollover was detected. Let's adjust the end timestamp according
to the number of rollovers instead.

Documentation for sys_clock_cycle_get_32() says it should count up
monotonically through the full 32 bit space, wrapping at 0xffffffff.
Therefore we just need to add 2^32 times the number of rollovers to
the end timestamp.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2023-07-18 21:36:57 +00:00
..
cycle64 samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
starve tests: improve filtering and use integration_platforms 2023-05-24 07:50:50 -04:00
timer_api tests: timer_api: Decrease tick rate for nRF RTC timer 2023-06-12 14:04:56 -04:00
timer_behavior tests: timer_behavior: better cope with timer wrap-arounds 2023-07-18 21:36:57 +00:00
timer_error_case samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
timer_monotonic tests: remove linker_generator sub tests from kernel 2023-06-02 04:47:06 -04:00