Please sign in to comment.
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 <firstname.lastname@example.org>
- Loading branch information...
Showing with 5 additions and 1 deletion.