From 90438603ad020799b14bc9839a51dceedfdabd7a Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 1 Jul 2021 21:14:00 +0200 Subject: [PATCH] fix(test) do not including anything in test files when not running tests --- tests/src/lv_test_indev.c | 2 +- tests/src/lv_test_main.c | 2 +- tests/src/test_cases/_test_template.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/lv_test_indev.c b/tests/src/lv_test_indev.c index f69932b14..ba3e3920b 100644 --- a/tests/src/lv_test_indev.c +++ b/tests/src/lv_test_indev.c @@ -1,8 +1,8 @@ +#if LV_BUILD_TEST #include "../lvgl.h" #include #include -#if LV_BUILD_TEST #include #include "lv_test_indev.h" #include "lv_test_init.h" diff --git a/tests/src/lv_test_main.c b/tests/src/lv_test_main.c index 645c964d3..52f467601 100644 --- a/tests/src/lv_test_main.c +++ b/tests/src/lv_test_main.c @@ -1,8 +1,8 @@ +#if LV_BUILD_TEST && !defined(LV_BUILD_TEST_NO_MAIN) #include "../lvgl.h" #include #include -#if LV_BUILD_TEST && !defined(LV_BUILD_TEST_NO_MAIN) #include #include "lv_test_init.h" diff --git a/tests/src/test_cases/_test_template.c b/tests/src/test_cases/_test_template.c index 722cf05de..41e562aae 100644 --- a/tests/src/test_cases/_test_template.c +++ b/tests/src/test_cases/_test_template.c @@ -1,5 +1,5 @@ -#include "../lvgl.h" #if LV_BUILD_TEST +#include "../lvgl.h" #include "unity/unity.h"