zephyr/tests/kernel/mutex
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
..
mutex_api ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
mutex_error_case tests: kernel: mutex: test for lock timeout race 2022-09-30 09:45:37 +00:00
sys_mutex ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00