Skip to content

Commit

Permalink
test(mem) fix test for #3324 so it reproduces the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed May 4, 2022
1 parent 9700664 commit 36dda72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/src/test_cases/test_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ void tearDown(void)
void test_mem_buf_realloc(void)
{
#if LV_MEM_CUSTOM == 0
void * buf = lv_mem_buf_get(LV_MEM_SIZE + 16384);
void * buf = lv_mem_buf_get(64);
memset(buf, 0, 64);
lv_mem_buf_release(buf);
buf = lv_mem_buf_get(LV_MEM_SIZE + 16384);
memset(buf, 0, LV_MEM_SIZE + 16384);
TEST_ASSERT_NULL(buf);
#endif
}
Expand Down

0 comments on commit 36dda72

Please sign in to comment.