chore(test): fix failing tests

This commit is contained in:
Gabor Kiss-Vamosi
2022-01-20 10:33:04 +01:00
parent 62fc7123f1
commit 1efe61fda2

View File

@@ -1,6 +1,8 @@
#if LV_BUILD_TEST #if LV_BUILD_TEST
#include "../lvgl.h" #include "../lvgl.h"
#if LV_USE_SNAPSHOT
#include "unity/unity.h" #include "unity/unity.h"
@@ -33,5 +35,13 @@ void test_snapshot_should_not_leak_memory(void)
TEST_ASSERT_EQUAL(initial_available_memory, final_available_memory); TEST_ASSERT_EQUAL(initial_available_memory, final_available_memory);
} }
#else /*LV_USE_SNAPSHOT*/
void test_snapshot_should_not_leak_memory(void)
{
}
#endif
#endif #endif