summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorIvan Orlov <[email protected]>2024-04-23 16:52:44 +0100
committerAnup Patel <[email protected]>2024-05-07 11:27:29 +0530
commit7bdf41ad1eb189820507c7699ee6a44df086ca70 (patch)
treec12e4c6f20f4d11467ccc2b0fa25e5695637e8c9 /lib/utils
parentf6243d9ce591b3a2085feff23ab2fbe1a6d51a14 (diff)
lib: tests: Add test for atomic_t
Implement the test which covers some of the functions from the `riscv_atomic.h` header file. The test contains 9 test cases: 1) atomic read/write test 2) add/return test 3) sub/return test 4) cmpxchg test 5) atomic_xchg test 6) atomic_raw_set_bit test 7) atomic_raw_clear_bit test 8) atomic_set_bit test 9) atomic_clear_bit test Some of the test cases operate on the `test_atomic` variable. It gets initialized in the suite init function. Signed-off-by: Ivan Orlov <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions