cleaned up warnings and build of unit tests

This commit is contained in:
skarg
2013-03-13 22:34:08 +00:00
parent e042ae4dea
commit bc1017ee60
4 changed files with 12 additions and 4 deletions
+9
View File
@@ -783,6 +783,15 @@ bool Multistate_Input_Write_Property(
#include <string.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(
BACNET_APPLICATION_DATA_VALUE * pValue,
uint8_t ucExpectedTag,
+1 -2
View File
@@ -1884,12 +1884,11 @@ static bool testBACnetApplicationDataValue(
BACNET_APPLICATION_DATA_VALUE * value)
{
uint8_t apdu[480] = { 0 };
int len = 0;
int apdu_len = 0;
BACNET_APPLICATION_DATA_VALUE test_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);
}
+1 -1
View File
@@ -2,7 +2,7 @@
CC = gcc
SRC_DIR = ../src
INCLUDES = -I../include -I.
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_RINGBUF
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_RING_BUFFER
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh
# Unit tests builder / runner for this project
make -f test.mak clean
make -s -f test.mak clean
make -f test.mak
cat test.log | grep Failed