1 #if LV_BUILD_TEST 2 #include "../lvgl.h" 3 4 #include "unity/unity.h" 5 setUp(void)6void setUp(void) 7 { 8 /* Function run before every test */ 9 } 10 tearDown(void)11void tearDown(void) 12 { 13 /* Function run after every test */ 14 } 15 16 /* #3324 */ test_mem_buf_realloc(void)17void test_mem_buf_realloc(void) 18 { 19 #if LV_MEM_CUSTOM == 0 20 void * buf1 = lv_mem_alloc(20); 21 void * buf2 = lv_mem_realloc(buf1, LV_MEM_SIZE + 16384); 22 TEST_ASSERT_NULL(buf2); 23 #endif 24 } 25 26 #endif 27