zephyr/tests/kernel/timer
Piotr Zięcik a45ce52253 tests: timer_api: Fix timer synchronization
The test_timer_periodicity waits for first timer expiration
in order to extract timer firing time. The wait is performed
using k_timer_status_sync() API call, which blocks thread
until timer expiration. However if the timer expired before
call the this function, it will return immediately, triggering
test failure.

This commit adds the second call to the k_timer_status_sync()
to ensure that the following part of the test will be executed
as soon as possible after timer expiration.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2019-06-06 09:31:26 -04:00
..
timer_api tests: timer_api: Fix timer synchronization 2019-06-06 09:31:26 -04:00
timer_monotonic license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00