zephyr/tests/kernel
Christopher Friedt 019a6ecae3 tests: kernel: mutex: test for lock timeout race
Say threadA holds a mutex and threadB tries
to lock it with a timeout, a race would occur
if threadA unlock that mutex after threadB
got unpended by sys_clock and before it gets
scheduled and calls k_spin_lock.

This patch supplies the test that can be used
to reproduce the problem and the fix that was
provided in #48056

Fixes #48056

Signed-off-by: Christopher Friedt <cfriedt@fb.com>
2022-09-30 09:45:37 +00:00
..
common tests: kernel: common: remove the nop test case 2022-09-21 13:38:09 -05:00
condvar/condvar_api test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
context tests: kernel: context: move to new ztest API 2022-08-04 13:42:47 +02:00
device ztest: improve some tests 2022-09-09 07:05:38 -04:00
early_sleep tests: kernel: early_sleep: move to new ztest API 2022-08-23 20:57:04 -04:00
events ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
fatal includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
fifo ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
fpu_sharing ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
gen_isr_table Revert "tests: kernel: gen_isr_table: Disable RISC-V direct ISR test" 2022-09-08 10:39:31 +02:00
interrupt Revert "tests: kernel: interrupt: Disable on ARM64 QEMU targets" 2022-09-23 12:10:25 +02:00
lifo ztest: improve some tests 2022-09-09 07:05:38 -04:00
mbox ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
mem_heap ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
mem_protect tests: mem_protect: sys_sem: move a test case to new ztest API 2022-09-22 16:42:51 +00:00
mem_slab ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
mp tests: kernel: move the multiprocessing test to new ztest 2022-08-11 12:19:59 +02:00
msgq ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
mutex tests: kernel: mutex: test for lock timeout race 2022-09-30 09:45:37 +00:00
obj_tracking tests: Add CONFIG_PIPES to tests that use pipes 2022-08-17 19:31:25 +02:00
pending test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
pipe ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
poll ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
profiling/profiling_api test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
queue ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
sched ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
semaphore tests/semaphore: fix "cpu test took too long" assertion failure 2022-09-28 07:53:56 +00:00
sleep includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
smp tests/kernel/smp: Correct parameter name 2022-09-19 09:19:02 +02:00
smp_boot_delay includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
spinlock includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
stack/stack ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
threads ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
tickless/tickless_concept tests: kernel: tickless: Don't run on nucleo_l073rz 2022-09-21 18:39:07 +00:00
timer tests: kernel: timer_behavior: Fix building on targets with small SRAM 2022-09-29 13:36:00 -05:00
usage/thread_runtime_stats ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
workq tests: work_queue: initialize msg 2022-09-19 19:15:59 +00:00
xip test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00