ci: add TEST_ASSERT_MEM_LEAK_LESS_THAN and use it in image decoder tests

This commit is contained in:
Gabor Kiss-Vamosi
2023-09-25 10:49:54 +02:00
parent a08a2aa3e2
commit 4eedc8cd5a
5 changed files with 7 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ void test_lodepng_1(void)
TEST_ASSERT_EQUAL_SCREENSHOT("libs/png_1.png");
TEST_ASSERT_EQUAL(mem_before, lv_test_get_free_mem());
TEST_ASSERT_MEM_LEAK_LESS_THAN(mem_before, 32);
/* Re-add libpng decoder */
lv_libpng_init();