From 1efe61fda2b0ee0d2b775ff323902efc9361134b Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 20 Jan 2022 10:33:04 +0100 Subject: [PATCH] chore(test): fix failing tests --- tests/src/test_cases/test_snapshot.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/src/test_cases/test_snapshot.c b/tests/src/test_cases/test_snapshot.c index ed3245d89..5ac10d6d4 100644 --- a/tests/src/test_cases/test_snapshot.c +++ b/tests/src/test_cases/test_snapshot.c @@ -1,6 +1,8 @@ #if LV_BUILD_TEST #include "../lvgl.h" +#if LV_USE_SNAPSHOT + #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); } +#else /*LV_USE_SNAPSHOT*/ + +void test_snapshot_should_not_leak_memory(void) +{ + +} + +#endif #endif