zephyr/tests/kernel/common/src
Daniel Leung 8fd3d18b40 tests: kernel/common: incorrect use of k_poll in timeout order
In the timeout order test, the usage of k_poll() assumes that it
only returns after all events are ready. However, that is not
the case, as k_poll() returns when non-zero number of events are
ready. This means the check for all semaphore being ready after
k_poll() will not always pass. So instead of using k_poll(),
simply wait a bit for timers to fire, then check results.

Also add some bits to clean up at the end of test.

Fixes #34585

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-05-25 07:34:59 -05:00
..
atomic.c test: atomic: multiple equal priority threads access atomic variable 2021-05-07 18:23:27 -04:00
bitarray.c tests/kernel/common: Skip bitarray tests when KERNEL_COHERENCE 2021-05-15 15:28:43 -04:00
bitfield.c
boot_delay.c tests/kernel/common: Skip boot delay tests on systems that are too fast 2021-05-07 16:48:58 -04:00
byteorder.c
clock.c
errno.c
irq_offload.c tests/kernel/common: Fix test test_nop for ARMV7_M_ARMV8_M_MAINLINE 2021-05-11 07:15:17 -05:00
main.c tests/kernel/common: Remove needless 1cpu limitation from test_clock_uptime 2021-05-17 15:27:37 -04:00
multilib.c
printk.c
timeout_order.c tests: kernel/common: incorrect use of k_poll in timeout order 2021-05-25 07:34:59 -05:00