Secure ReadPropertyMultiple code, and improve unit test coverage. (#650)

This commit is contained in:
Steve Karg
2024-05-21 08:28:50 -05:00
committed by GitHub
parent 60964a4796
commit 4cd7acebcd
5 changed files with 302 additions and 331 deletions
+3 -3
View File
@@ -24,12 +24,12 @@ add_compile_definitions(
BIG_ENDIAN=0
CONFIG_ZTEST=1
BACAPP_ALL
)
)
include_directories(
${SRC_DIR}
${TST_DIR}/ztest/include
)
)
add_executable(${PROJECT_NAME}
# File(s) under test
@@ -62,4 +62,4 @@ add_executable(${PROJECT_NAME}
./src/main.c
${ZTST_DIR}/ztest_mock.c
${ZTST_DIR}/ztest.c
)
)
+7 -9
View File
@@ -1,13 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief BACnet ReadPropertyMultiple -Request and -Ack codec unit test
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Greg Shue <greg.shue@outlook.com>
* @date 2005
* @copyright SPDX-License-Identifier: MIT
*/
/* @file
* @brief test BACnet integer encode/decode APIs
*/
#include <zephyr/ztest.h>
#include <bacnet/bacerror.h> /* For bacerror_decode_error_class_and_code() */
#include <bacnet/bacdcode.h>