Commit 7b1ed968 authored by Ivan Orlov's avatar Ivan Orlov Committed by Anup Patel
Browse files

lib: tests: Add test for spinlocks



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: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 7bdf41ad
Pipeline #2143 failed with stages
in 0 seconds
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment