zephyr/tests/kernel
Alberto Escolar Piedras 22c83f0f97 tests/kernel/context: Detect spurious wakes during timeout check
In 972a4d9f6f
the test was relaxed to allow a possible parallel thread
waking the CPU during the idle timeout checks.

How this was done though, a system timer driver
which wakes the kernel spuriously a bit before the
correct deadline would not be detected, even
though it should.

Let's fix this, ensuring the timer has been
called when we check the wake time in inside the
expected range.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-05-07 17:56:50 -04:00
..
cache tests: kernel: cache: Remove adp_xc7k/ae350 from the blacklist 2024-04-22 09:19:27 -04:00
common Revert "tests: kernel: update test case with sys_clock_hw_cycles_per_sec" 2024-05-06 14:52:29 +03:00
condvar/condvar_api tests: fix thread function signatures 2023-10-30 12:24:34 +01:00
context tests/kernel/context: Detect spurious wakes during timeout check 2024-05-07 17:56:50 -04:00
device tests/kernel/device: Add tests for device deferred init 2024-04-11 15:50:44 -04:00
early_sleep tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
events tests kernel: Exclude posix arch for userspace tests 2023-10-24 09:05:29 +02:00
fatal kernel: align thread stack size declaration 2024-03-27 19:27:10 -04:00
fifo tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
fpu_sharing twister: s/riscv(32|64)/riscv 2024-02-26 12:49:06 +01:00
gen_isr_table hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
interrupt tests: kernel: interrupt: nested_irq: support nRF54L15 FLPR CLIC 2024-05-06 19:06:19 +02:00
lifo tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
mbox hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mem_heap/k_heap_api tests: move shared_multi_heap to tests/lib 2023-12-13 17:27:54 -05:00
mem_protect boards: arm: stm32f756 with all mpu regions when testing in userspace 2024-04-30 15:11:57 +02:00
mem_slab hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mp arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
msgq tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
mutex tests: kernel: fix thread function signatures 2023-10-30 17:45:59 +00:00
obj_core hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
obj_tracking tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
pending tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
pipe tests: kernel: use TC_END_REPORT for faults 2024-02-28 13:39:15 -05:00
poll hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
profiling/profiling_api tests: kernel: remove pm from profiling test 2024-04-25 09:55:08 +00:00
queue tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
sched test: Remove multi level queue limit test 2024-03-12 19:37:40 -04:00
semaphore tests/kernel: Bump kobj thread bitmask size for a few tests 2024-05-02 13:55:03 -04:00
sleep tests: sleep: reduce verbosity 2024-01-09 09:58:57 +01:00
smp hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
smp_abort tests: thread abort deadlock scenario 2024-05-02 13:55:03 -04:00
smp_boot_delay hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
smp_suspend tests: smp_suspend: Add configurable delay 2024-01-26 15:55:27 +00:00
spinlock arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
stack/stack tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
threads Revert "tests: kernel: update test case with sys_clock_hw_cycles_per_sec" 2024-05-06 14:52:29 +03:00
tickless/tickless_concept tests: tickless: do not enable PM 2024-04-25 09:55:08 +00:00
timer tests: timer_behavior: increase stdev tolerance for ite platform 2024-04-25 07:22:47 -04:00
usage/thread_runtime_stats tests: kernel: thread_runtime_stats: Relax precision test for QEMU 2024-03-06 16:42:33 -05:00
workq spelling: Replace occurrences of "iff" with "if and only if" 2024-05-06 14:58:08 +01:00
xip hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00