refactor: rename test macro to prevent collisions (#91)

* refactor: rename test macro to prevent collisions

* style: align cmake epilog

* refactor: rename define in makefiles
This commit is contained in:
Carlos Gomes Martinho
2020-05-28 15:55:05 +02:00
committed by GitHub
parent cbfa74e48d
commit 981d4036c8
220 changed files with 308 additions and 308 deletions
+1 -1
View File
@@ -328,7 +328,7 @@ void FIFO_Init(FIFO_BUFFER *b, volatile uint8_t *buffer, unsigned buffer_len)
return;
}
#ifdef TEST
#ifdef BAC_TEST
#include <assert.h>
#include <string.h>
#include <stdio.h>
+1 -1
View File
@@ -108,7 +108,7 @@ extern "C" {
volatile uint8_t * buffer,
unsigned buffer_len);
#ifdef TEST
#ifdef BAC_TEST
#include "ctest.h"
BACNET_STACK_EXPORT
void testFIFOBuffer(
+2 -2
View File
@@ -59,7 +59,7 @@ char *filename_remove_path(const char *filename_in)
return filename_out;
}
#ifdef TEST
#ifdef BAC_TEST
#include <assert.h>
#include <string.h>
@@ -109,4 +109,4 @@ int main(void)
return 0;
}
#endif /* TEST_FILENAME */
#endif /* TEST */
#endif /* BAC_TEST */
+2 -2
View File
@@ -31,13 +31,13 @@
License.
-------------------------------------------
####COPYRIGHTEND####*/
/*#define TEST */
/*#define BAC_TEST */
/*#define TEST_KEY */
#include "key.h"
/** @file key.c Tests (only) of key encoding/decoding. */
#ifdef TEST
#ifdef BAC_TEST
#include <assert.h>
#include <string.h>
+2 -2
View File
@@ -496,7 +496,7 @@ void Keylist_Delete(OS_Keylist list)
return;
}
#ifdef TEST
#ifdef BAC_TEST
#include <assert.h>
#include <string.h>
@@ -803,4 +803,4 @@ int main(void)
return 0;
}
#endif /* TEST_KEYLIST */
#endif /* TEST */
#endif /* BAC_TEST */
+1 -1
View File
@@ -121,7 +121,7 @@ extern "C" {
int Keylist_Count(
OS_Keylist list);
#ifdef TEST
#ifdef BAC_TEST
#include "ctest.h"
BACNET_STACK_EXPORT
void testKeyList(
+1 -1
View File
@@ -455,7 +455,7 @@ bool Ringbuf_Init(RING_BUFFER *b,
return status;
}
#ifdef TEST
#ifdef BAC_TEST
#include <assert.h>
#include <string.h>
#include <limits.h>
+1 -1
View File
@@ -96,7 +96,7 @@ extern "C" {
unsigned element_size,
unsigned element_count);
#ifdef TEST
#ifdef BAC_TEST
#include "ctest.h"
BACNET_STACK_EXPORT
void testRingBufPowerOfTwo(Test * pTest);
+2 -2
View File
@@ -130,7 +130,7 @@ bool sbuf_truncate(STATIC_BUFFER *b, /* static buffer structure */
return status;
}
#ifdef TEST
#ifdef BAC_TEST
#include <assert.h>
#include <string.h>
@@ -209,4 +209,4 @@ int main(void)
return 0;
}
#endif /* TEST_STATIC_BUFFER */
#endif /* TEST */
#endif /* BAC_TEST */