From 643fdf6939428c7a8d84f0496b3c2651f3020086 Mon Sep 17 00:00:00 2001 From: skarg Date: Thu, 17 Aug 2006 09:02:51 +0000 Subject: [PATCH] Moved decode portion used in unit test into the unit test area. --- bacnet-stack/wp.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/bacnet-stack/wp.c b/bacnet-stack/wp.c index a0dfc427..ef1408da 100644 --- a/bacnet-stack/wp.c +++ b/bacnet-stack/wp.c @@ -147,6 +147,11 @@ int wp_decode_service_request(uint8_t * apdu, return len; } +#ifdef TEST +#include +#include +#include "ctest.h" + int wp_decode_apdu(uint8_t * apdu, unsigned apdu_len, uint8_t * invoke_id, BACNET_WRITE_PROPERTY_DATA * data) @@ -173,15 +178,6 @@ int wp_decode_apdu(uint8_t * apdu, return len; } - - - - -#ifdef TEST -#include -#include -#include "ctest.h" - void testWritePropertyTag(Test * pTest, BACNET_WRITE_PROPERTY_DATA * data) { BACNET_WRITE_PROPERTY_DATA test_data = { 0 };