summaryrefslogtreecommitdiff
path: root/lib/sbi/tests/riscv_locks_test.c
AgeCommit message (Collapse)Author
2024-05-07lib: tests: Add test for spinlocksIvan Orlov
Implement the test which covers some of the functions from the `riscv_locks.h` file. This test consists of 3 test cases: 1) For lock/unlock functions 2) Unsuccessful trylock (the lock was previously taken) 3) Successful trylock (the lock is free and can be taken) Signed-off-by: Ivan Orlov <[email protected]> Reviewed-by: Anup Patel <[email protected]>