diff options
author | Aravind Batni | 2014-07-24 15:12:05 -0500 |
---|---|---|
committer | Aravind Batni | 2014-07-24 15:12:05 -0500 |
commit | b475da7ae0bf231053e5b2c040fdc8e3b6361e25 (patch) | |
tree | 15bfe8ff4e3aedbee4e19201d0664a5fa1a9ef48 | |
parent | 684252d5908954990fcd6138292f85ab499a71e3 (diff) | |
download | traceframework-b475da7ae0bf231053e5b2c040fdc8e3b6361e25.tar.gz traceframework-b475da7ae0bf231053e5b2c040fdc8e3b6361e25.tar.xz traceframework-b475da7ae0bf231053e5b2c040fdc8e3b6361e25.zip |
removed a debug code from arm producer consumer testDEV.TFWK-01.01.01.04
-rw-r--r-- | test/TFUnitTest/src/armv7/linux/fw_init.c | 2 | ||||
-rw-r--r-- | test/TFUnitTest/src/common/testutil.c | 16 | ||||
-rwxr-xr-x[-rw-r--r--] | test/TFUnitTest/src/tests/testCuia.c | 2 |
3 files changed, 11 insertions, 9 deletions
diff --git a/test/TFUnitTest/src/armv7/linux/fw_init.c b/test/TFUnitTest/src/armv7/linux/fw_init.c index 97ddf93..4c5a815 100644 --- a/test/TFUnitTest/src/armv7/linux/fw_init.c +++ b/test/TFUnitTest/src/armv7/linux/fw_init.c | |||
@@ -219,7 +219,7 @@ int initEthSend(void) | |||
219 | /* clear the config structure */ | 219 | /* clear the config structure */ |
220 | memset (ðConfig, 0, sizeof (ethConfig)); | 220 | memset (ðConfig, 0, sizeof (ethConfig)); |
221 | 221 | ||
222 | strcpy(ethConfig.dstIp, transportArgs.ipDst); | 222 | strncpy(ethConfig.dstIp, transportArgs.ipDst, 20); |
223 | ethConfig.remoteUdpPortNum = transportArgs.remoteUdpPort; | 223 | ethConfig.remoteUdpPortNum = transportArgs.remoteUdpPort; |
224 | 224 | ||
225 | utf_GetEthSendHandle(ethConfig); | 225 | utf_GetEthSendHandle(ethConfig); |
diff --git a/test/TFUnitTest/src/common/testutil.c b/test/TFUnitTest/src/common/testutil.c index 69918e5..e8faac6 100644 --- a/test/TFUnitTest/src/common/testutil.c +++ b/test/TFUnitTest/src/common/testutil.c | |||
@@ -158,20 +158,20 @@ void utlTestReadValues(FILE* fp, transportArgs_t* tArgs) | |||
158 | case UTEST_IP_DST_OFFSET: | 158 | case UTEST_IP_DST_OFFSET: |
159 | if (ep != NULL) | 159 | if (ep != NULL) |
160 | { | 160 | { |
161 | strcpy (tArgs->ipDst, ep); | 161 | strncpy (tArgs->ipDst, ep, sizeof (ep)); |
162 | strcat (tArgs->ipDst, "."); | 162 | strncat (tArgs->ipDst, ".", 1); |
163 | data = (char *)strtok(NULL, data_tokens); | 163 | data = (char *)strtok(NULL, data_tokens); |
164 | 164 | ||
165 | strcat (tArgs->ipDst, data); | 165 | strncat (tArgs->ipDst, data, sizeof (data) ); |
166 | strcat (tArgs->ipDst, "."); | 166 | strncat (tArgs->ipDst, ".", 1); |
167 | data = (char *)strtok(NULL, data_tokens); | 167 | data = (char *)strtok(NULL, data_tokens); |
168 | 168 | ||
169 | strcat (tArgs->ipDst, data); | 169 | strncat (tArgs->ipDst, data, sizeof (data)); |
170 | strcat (tArgs->ipDst, "."); | 170 | strncat (tArgs->ipDst, ".", 1); |
171 | data = (char *)strtok(NULL, data_tokens); | 171 | data = (char *)strtok(NULL, data_tokens); |
172 | 172 | ||
173 | strcat (tArgs->ipDst, data); | 173 | strncat (tArgs->ipDst, data, sizeof (data)); |
174 | strcat (tArgs->ipDst, ""); | 174 | strncat (tArgs->ipDst, "", 1); |
175 | } | 175 | } |
176 | 176 | ||
177 | printf ("tArgs->ipDst = %s \n", tArgs->ipDst); | 177 | printf ("tArgs->ipDst = %s \n", tArgs->ipDst); |
diff --git a/test/TFUnitTest/src/tests/testCuia.c b/test/TFUnitTest/src/tests/testCuia.c index 1d16605..666deec 100644..100755 --- a/test/TFUnitTest/src/tests/testCuia.c +++ b/test/TFUnitTest/src/tests/testCuia.c | |||
@@ -230,7 +230,9 @@ void* tfTestcUiaProducercUiaConsumers (void* args) | |||
230 | /* create at least one consuemr for the contract (from producer core) before the notification task | 230 | /* create at least one consuemr for the contract (from producer core) before the notification task |
231 | * This is NOT a mandatory requirement for trace framework, it is done due to the unit test | 231 | * This is NOT a mandatory requirement for trace framework, it is done due to the unit test |
232 | * notifications demanding no consumers to exit the task */ | 232 | * notifications demanding no consumers to exit the task */ |
233 | #ifdef DEBUG_MULTIPLE_ITERATIONS | ||
233 | for ( i = 0; i < (UTF_NUM_CONTRACT_VERSIONS * 10); i++ ) | 234 | for ( i = 0; i < (UTF_NUM_CONTRACT_VERSIONS * 10); i++ ) |
235 | #endif | ||
234 | { | 236 | { |
235 | contract_verId = i; | 237 | contract_verId = i; |
236 | contract_verId ++; | 238 | contract_verId ++; |