fix(test) add #if guard to exclude test related files from the build

This commit is contained in:
Gabor Kiss-Vamosi
2021-06-02 19:58:15 +02:00
parent c26bcf1cc6
commit c12a22ee87
4 changed files with 13 additions and 2 deletions

View File

@@ -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*/

View File

@@ -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
#ifndef UNITY_FRAMEWORK_H
#define UNITY_FRAMEWORK_H
#define UNITY
@@ -659,3 +659,5 @@ void verifyTest(void);
}
#endif
#endif
#endif /*LV_BUILD_TEST*/

View File

@@ -3,6 +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
#ifndef UNITY_INTERNALS_H
#define UNITY_INTERNALS_H
@@ -1037,3 +1038,5 @@ int UnityTestMatches(void);
/* End of UNITY_INTERNALS_H */
#endif
#endif /*LV_BUILD_TEST*/