Skip to content
Snippets Groups Projects
Commit d7853ac8 authored by o0c's avatar o0c
Browse files

unittests: fix loop in tests-core-atomic

parent 032b07ce
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ static void test_atomic_dec_positive(void)
{
atomic_int res = ATOMIC_VAR_INIT(99);
for (int i = 99; i < -123; --i) {
for (int i = 99; i > -123; --i) {
TEST_ASSERT_EQUAL_INT(i, atomic_fetch_sub(&res, 1));
TEST_ASSERT_EQUAL_INT(i - 1, atomic_load(&res));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment