zephyr/tests/kernel
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
..
arm_irq_vector_table tests: adjust stack size for mps2_an385's coverage test 2019-04-11 17:59:39 -04:00
arm_runtime_nmi license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
boot_page_table license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
common style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
context drivers: timer: add LiteX timer driver 2019-05-15 12:52:16 -05:00
critical sanitycheck: CONFIG_TEST_USERSPACE / userspace tag cleanup 2019-05-30 08:45:39 -04:00
device tests/kernel/device: extends test for code coverage 2019-05-01 10:38:03 -04:00
early_sleep license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
fatal tests/kernel/fatal: Fix wait-for-interrupt delay in stack check test 2019-06-03 12:03:48 -07:00
fifo license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
fp_sharing tests: kernel: fp_sharing: minor fix in #ifdef expression 2019-04-10 10:59:46 -04:00
gen_isr_table tests: kernel: Exclude platforms stm32_min_dev_* 2019-04-26 03:34:45 -07:00
interrupt tests: kernel: Exclude platforms stm32_min_dev_* 2019-04-26 03:34:45 -07:00
lifo sanitycheck: CONFIG_TEST_USERSPACE / userspace tag cleanup 2019-05-30 08:45:39 -04:00
mbox license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
mem_heap/mheap_api_concept license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
mem_pool tests: adjust stack size for mps2_an385's coverage test 2019-04-11 17:59:39 -04:00
mem_protect tests: kernel: userspace: explicitly declare function for the test 2019-05-30 09:00:05 -05:00
mem_slab license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
mp license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
msgq/msgq_api license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
mutex tests: adjust stack size for mps2_an385's coverage test 2019-04-11 17:59:39 -04:00
obj_tracing license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
pending license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
pipe tests: pipe: fix error with optimization disabled 2019-05-02 07:22:37 -04:00
poll license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
profiling/profiling_api tests: adjust stack size for mps2_an385's coverage test 2019-04-11 17:59:39 -04:00
queue license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
sched style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
semaphore license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
sleep tests/kernel/sleep: add tests for k_usleep() API 2019-05-21 23:09:16 -04:00
smp license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
spinlock license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
stack license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
static_idt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
threads tests: adjust stack size for mps2_an385's coverage test 2019-04-11 17:59:39 -04:00
tickless tests: tickless_concept: Fix slicing time measurement 2019-05-23 09:28:58 -04:00
timer tests: timer_api: Fix timer synchronization 2019-06-06 09:31:26 -04:00
workq style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
xip license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00