Skip to content

Commit

Permalink
[examples][testcases] fix small memory management algorithm test case
Browse files Browse the repository at this point in the history
  • Loading branch information
enkiller committed Oct 25, 2021
1 parent db5b0fd commit ea63c9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/utest/testcases/kernel/mem_tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static void mem_alloc_test(void)
}
}
rt_memset(ctx, 0xAA, ctx->size);
rt_free(ctx);
rt_mem_free(ctx);
head.count --;
}
continue;
Expand Down Expand Up @@ -370,7 +370,7 @@ static void mem_alloc_test(void)
}
}
rt_memset(ctx, 0xAA, ctx->size);
rt_free(ctx);
rt_mem_free(ctx);
head.count --;
}
}
Expand All @@ -387,7 +387,7 @@ static void mem_alloc_test(void)
}
}
rt_memset(ctx, 0xAA, ctx->size);
rt_free(ctx);
rt_mem_free(ctx);
head.count --;
}
uassert_int_equal(head.count, 0);
Expand Down

0 comments on commit ea63c9e

Please sign in to comment.