test(mem) add test for #3324

This commit is contained in:
embeddedt
2022-05-04 09:19:00 -04:00
parent b83c5aa9bc
commit 97006647d8

View File

@@ -0,0 +1,25 @@
#if LV_BUILD_TEST
#include "../lvgl.h"
#include "unity/unity.h"
void setUp(void)
{
/* Function run before every test */
}
void tearDown(void)
{
/* Function run after every test */
}
/* #3324 */
void test_mem_buf_realloc(void)
{
#if LV_MEM_CUSTOM == 0
void * buf = lv_mem_buf_get(LV_MEM_SIZE + 16384);
TEST_ASSERT_NULL(buf);
#endif
}
#endif