This website requires JavaScript.
Explore
Help
Sign In
michaelh
/
zephyr
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Releases
Activity
ch32v003
zephyr
/
tests
/
kernel
/
spinlock
/
prj.conf
4 lines
73 B
Plaintext
Raw
Permalink
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-25 23:09:24 +01: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-22 17:07:32 +01:00
CONFIG_SPIN_VALIDATE=y
tests: Fix spinlock time limit test Set the time limit to be long enough not to trigger too early. Do not unlock after assert when doing the time limit test. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2022-10-20 16:03:15 +02:00
CONFIG_SPIN_LOCK_TIME_LIMIT=100000
Copy permalink