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:
committed by
GitHub
parent
cbfa74e48d
commit
981d4036c8
@@ -2306,7 +2306,7 @@ int bvlc_decode_foreign_device_table_entry(uint8_t *pdu,
|
||||
return bytes_consumed;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@@ -3193,4 +3193,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_BBMD */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -491,7 +491,7 @@ extern "C" {
|
||||
uint16_t npdu_size,
|
||||
uint16_t *npdu_len);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
BACNET_STACK_EXPORT
|
||||
void test_BVLC(Test *pTest);
|
||||
|
||||
@@ -1483,7 +1483,7 @@ int bvlc6_decode_distribute_broadcast_to_network(uint8_t *pdu,
|
||||
return bytes_consumed;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
@@ -2284,4 +2284,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_BBMD */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -417,7 +417,7 @@ extern "C" {
|
||||
uint16_t npdu_size,
|
||||
uint16_t * npdu_len);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
BACNET_STACK_EXPORT
|
||||
void test_BVLC6(
|
||||
|
||||
@@ -141,7 +141,7 @@ uint16_t CRC_Calc_Data(uint8_t dataValue, uint16_t crcValue)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
@@ -1248,7 +1248,7 @@ void MSTP_Init(volatile struct mstp_port_struct_t *mstp_port)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "bacnet/basic/sys/ringbuf.h"
|
||||
|
||||
Reference in New Issue
Block a user