zephyr/tests/kernel/mutex/mutex_error_case
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
..
src tests: kernel: mutex: test for lock timeout race 2022-09-30 09:45:37 +00:00
CMakeLists.txt
prj.conf tests: Add CONFIG_PIPES to tests that use pipes 2022-08-17 19:31:25 +02:00
testcase.yaml