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> |
||
|---|---|---|
| .. | ||
| main.c | ||
| spinlock_error_case.c | ||