zephyr/tests
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
..
application_development tests: application_development: move the gen inc file test to new ztest 2022-09-09 10:17:29 -05:00
arch tests: arch/timing: cleanup test configuraton 2022-09-26 16:49:58 +00:00
benchmarks tests: benchmarks: app_kernel: Remove k_mem_pool declaration 2022-09-28 14:24:34 +00:00
bluetooth tests: bluetooth: host: Remove unused definitions and inclusions 2022-09-29 10:17:38 +00:00
boards tests: Enable the pca9555 chip on mec172xevb_assy6906 2022-09-13 08:54:25 +00:00
boot/uefi includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
cmake/config_dir cmake: APPLICATION_CONFIG_DIR support implemented 2021-11-10 08:25:36 -05:00
crypto includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
drivers tests: drivers: can: api: skip RTR tests if not supported 2022-09-21 08:50:47 +00:00
kernel tests: kernel: mutex: test for lock timeout race 2022-09-30 09:45:37 +00:00
lib trivial: Remove empty files 2022-09-30 09:41:55 +00:00
misc tests: misc: move the kconfig options test to new ztest API 2022-09-09 10:17:29 -05:00
net tests: net: bridge: exclude mg100 and pinnacle_100_dvk 2022-09-15 11:58:23 +01:00
posix ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
subsys tests: cpp: cxx: Add more driver headers 2022-09-23 14:30:39 +02:00
unit tests: unit: cbprintf: Disable logging 2022-09-19 10:14:23 +00:00
ztest ztest: Fix unused variable compile error in shuffle function 2022-09-14 20:13:46 -04:00