diff options
| author | Ivan Orlov <[email protected]> | 2024-04-23 16:52:44 +0100 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-05-07 11:27:29 +0530 |
| commit | 7bdf41ad1eb189820507c7699ee6a44df086ca70 (patch) | |
| tree | c12e4c6f20f4d11467ccc2b0fa25e5695637e8c9 /lib/utils/timer | |
| parent | f6243d9ce591b3a2085feff23ab2fbe1a6d51a14 (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/timer')
0 files changed, 0 insertions, 0 deletions
