1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
Marian Buschsieweke
1893377b59
tests/sys_atomic_utils_unittests: check return values
Update the test to the new API and also verify correct return values.
2020-12-16 18:10:51 +01:00
Marian Buschsieweke
c015e64e8e
tests/sys_atomic_utils_unittests: spice up test
Initializing the state variables per loop with a value where some bits are set
and some are cleared makes much more sense. E.g. previously the bitwise and
applied on the state variable initialized with zero was unlikely to detect
implementation issues, as the state value never changed. So if the bitwise
and would be incorrectly implemented as a nop, it would have passed the unit
test.
2020-12-16 10:13:43 +01:00
Marian Buschsieweke
090722d78f
tests/sys_atomic_utils_unittests: API and cleanup
- Update to new atomic_utils API
- Use volatile_utils.h over custom implementation
2020-11-24 14:34:51 +01:00
996da8fb6d
tests/sys_atomic_utils_unittest: add sys atomic utils unittests 2020-11-13 08:47:18 +01:00