zephyr/tests
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
..
application_development style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
benchmarks style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
bluetooth Bluetooth: Controller: Test for user extensions 2019-06-06 12:38:13 +02:00
boards style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
booting/stub license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
cmsis_rtos_v1 tests: cmsis_rtos_v1: remove cast abuses 2019-06-01 10:21:13 -04:00
cmsis_rtos_v2 lib: cmsis_v2: set default dynamic stack size 2019-05-02 15:42:33 -04:00
crypto tests: mbedtls: Call mbedtls_platform_set_printf() only if needed 2019-05-23 09:27:59 -04:00
drivers style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
kernel tests: timer_api: Fix timer synchronization 2019-06-06 09:31:26 -04:00
lib tests: lib: ring_buffer: Test for ring_buf_reset, ring_buf_capacity_get 2019-05-30 09:44:03 -04:00
misc license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
net tests: net: socket: register: Close socket after test 2019-06-06 17:49:01 +08:00
posix sanitycheck: CONFIG_TEST_USERSPACE / userspace tag cleanup 2019-05-30 08:45:39 -04:00
shell shell: add test for new built-in command 2019-05-24 11:04:42 +02:00
subsys style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
unit misc: Always test the portable version of the math_extras.h functions. 2019-05-14 19:53:30 -05:00
ztest subsys/testsuite/ztest: change zassert_mem_equal to macro 2019-06-03 09:39:37 -04:00