cleaned up warnings and build of unit tests
This commit is contained in:
@@ -783,6 +783,15 @@ bool Multistate_Input_Write_Property(
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "ctest.h"
|
#include "ctest.h"
|
||||||
|
|
||||||
|
|
||||||
|
bool Device_Valid_Object_Name(
|
||||||
|
BACNET_CHARACTER_STRING * object_name,
|
||||||
|
int *object_type,
|
||||||
|
uint32_t * object_instance)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool WPValidateArgType(
|
bool WPValidateArgType(
|
||||||
BACNET_APPLICATION_DATA_VALUE * pValue,
|
BACNET_APPLICATION_DATA_VALUE * pValue,
|
||||||
uint8_t ucExpectedTag,
|
uint8_t ucExpectedTag,
|
||||||
|
|||||||
@@ -1884,12 +1884,11 @@ static bool testBACnetApplicationDataValue(
|
|||||||
BACNET_APPLICATION_DATA_VALUE * value)
|
BACNET_APPLICATION_DATA_VALUE * value)
|
||||||
{
|
{
|
||||||
uint8_t apdu[480] = { 0 };
|
uint8_t apdu[480] = { 0 };
|
||||||
int len = 0;
|
|
||||||
int apdu_len = 0;
|
int apdu_len = 0;
|
||||||
BACNET_APPLICATION_DATA_VALUE test_value;
|
BACNET_APPLICATION_DATA_VALUE test_value;
|
||||||
|
|
||||||
apdu_len = bacapp_encode_application_data(&apdu[0], value);
|
apdu_len = bacapp_encode_application_data(&apdu[0], value);
|
||||||
len = bacapp_decode_application_data(&apdu[0], apdu_len, &test_value);
|
bacapp_decode_application_data(&apdu[0], apdu_len, &test_value);
|
||||||
|
|
||||||
return bacapp_same_value(value, &test_value);
|
return bacapp_same_value(value, &test_value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
SRC_DIR = ../src
|
SRC_DIR = ../src
|
||||||
INCLUDES = -I../include -I.
|
INCLUDES = -I../include -I.
|
||||||
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_RINGBUF
|
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_RING_BUFFER
|
||||||
|
|
||||||
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
|
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Unit tests builder / runner for this project
|
# Unit tests builder / runner for this project
|
||||||
|
|
||||||
make -f test.mak clean
|
make -s -f test.mak clean
|
||||||
make -f test.mak
|
make -f test.mak
|
||||||
cat test.log | grep Failed
|
cat test.log | grep Failed
|
||||||
|
|||||||
Reference in New Issue
Block a user