This website requires JavaScript.
Explore
Help
Sign In
OrgZephyr
/
zephyr
mirror of
https://github.com/zephyrproject-rtos/zephyr.git
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Issues
Releases
Wiki
Activity
ad5966a432
zephyr
/
tests
/
kernel
/
spinlock
/
prj.conf
5 lines
94 B
Plaintext
Raw
Normal View
History
Unescape
Escape
tests/kernel: Add spinlock test Simple test of spinlock semantics. Bounce between two CPUs locking and releasing, validating that nothing changes at unexpected times. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-01-26 06:09:24 +08:00
CONFIG_ZTEST=y
tests: spinlock: add some error test cases Add some error test cases for spinlock, include: 1.Validate indentical spinlock cannot be used recursively. 2.Validate unlocking incorrect spinlock will trigger assertion. 3.Validate releasing incorrect spinlock will trigger assertion. Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
2020-12-23 00:07:32 +08:00
CONFIG_SPIN_VALIDATE=y
kernel: Option to assert on spin lock time Spin locks held for any lengthy duration prevent interrupts and in a real time system where interrupts drive tasks this can be problematic. Add an option to assert if a spin lock is held for a duration longer than the configurable number of microseconds. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2022-10-01 02:54:48 +08:00
CONFIG_SPIN_LOCK_TIME_LIMIT=1000
tests: kernel: spinlock: move to new ztest API Move test to use new ztest API. Signed-off-by: Guo Lixin <lixinx.guo@intel.com>
2022-07-01 16:12:50 +08:00
CONFIG_ZTEST_NEW_API=y