zephyr/tests
Alberto Escolar Piedras 847b7ccbcc tests: kernel tickless: Bugfix for POSIX arch in TICKLESS
In the POSIX architecture, with the inf_clock "SOC", time does
not pass while the CPU is running. Tests that require time to pass
while busy waiting should call k_busy_wait() or in some other way
set the CPU to idle. This test was setting the CPU to idle while
waiting for the next time slice. This is ok if the system tick
(timer) is active and awaking the CPU every system tick period.
But when configured in tickless mode that is not the case, and the
CPU was set to sleep for an indefinite amount of time.
This commit fixes it by using k_busy_wait(a few microseconds) inside
that busy wait loop instead.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-10-31 19:43:10 -04:00
..
application_development samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
benchmarks samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
bluetooth samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
boards samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
booting/stub samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
cmsis_rtos_v1 samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
compliance
crypto samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
drivers samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
include shell: Rename shell to legacy_shell 2018-09-19 09:30:29 -04:00
kernel tests: kernel tickless: Bugfix for POSIX arch in TICKLESS 2018-10-31 19:43:10 -04:00
lib samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
misc/test_build samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
net samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
posix samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
power samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
shell samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
subsys tests: remove logger-hook test 2018-10-31 10:11:14 -04:00
unit samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
ztest samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
CMakeLists.txt tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
Kconfig Kconfig: Use the first default with a satisfied condition 2018-08-10 12:38:28 -07:00