aboutsummaryrefslogtreecommitdiff
path: root/tests/unity/unity.c
diff options
context:
space:
mode:
authorGabor Kiss-Vamosi <kisvegabor@gmail.com>2021-06-02 19:58:15 +0200
committerGabor Kiss-Vamosi <kisvegabor@gmail.com>2021-06-18 14:13:41 +0200
commitc12a22ee87681d1344696a3b9531e9100808eb85 (patch)
treeef7d02e4294fa1125251d1d7d687ff57de972db8 /tests/unity/unity.c
parentc26bcf1cc6e09b3c5d013e204d3b03badc614664 (diff)
downloadlvgl-c12a22ee87681d1344696a3b9531e9100808eb85.tar.gz
lvgl-c12a22ee87681d1344696a3b9531e9100808eb85.zip
fix(test) add #if guard to exclude test related files from the build
Diffstat (limited to 'tests/unity/unity.c')
-rw-r--r--tests/unity/unity.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unity/unity.c b/tests/unity/unity.c
index be3528fad..872da5b0b 100644
--- a/tests/unity/unity.c
+++ b/tests/unity/unity.c
@@ -3,7 +3,7 @@
Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams
[Released under MIT License. Please refer to license.txt for details]
============================================================================ */
-
+#if LV_BUILD_TEST
#include "unity.h"
#include <stddef.h>
@@ -2108,3 +2108,5 @@ int UnityTestMatches(void)
#endif /* UNITY_USE_COMMAND_LINE_ARGS */
/*-----------------------------------------------*/
+#endif /*LV_BUILD_TEST*/
+