Changeset 12061 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Feb 26, 2007, 1:56:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r12033 r12061 664 664 chipProcessedImfileRow *object; 665 665 666 object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16 );666 object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 ); 667 667 668 668 if (!object) { … … 706 706 exit(EXIT_FAILURE); 707 707 } 708 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 709 psFree(object); 710 exit(EXIT_FAILURE); 711 } 712 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 708 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 713 709 psFree(object); 714 710 exit(EXIT_FAILURE); … … 762 758 camProcessedExpRow *object; 763 759 764 object = camProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string",32.32, 32.32, -16, "a string", "a string" );760 object = camProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", 32.32, 32.32, -16, "a string", "a string" ); 765 761 766 762 if (!object) { … … 816 812 exit(EXIT_FAILURE); 817 813 } 818 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 819 psFree(object); 820 exit(EXIT_FAILURE); 821 } 822 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 814 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 823 815 psFree(object); 824 816 exit(EXIT_FAILURE); … … 1013 1005 detProcessedImfileRow *object; 1014 1006 1015 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16 );1007 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 ); 1016 1008 1017 1009 if (!object) { … … 1051 1043 exit(EXIT_FAILURE); 1052 1044 } 1053 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1054 psFree(object); 1055 exit(EXIT_FAILURE); 1056 } 1057 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1045 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1058 1046 psFree(object); 1059 1047 exit(EXIT_FAILURE); … … 1070 1058 detProcessedExpRow *object; 1071 1059 1072 object = detProcessedExpRowAlloc(-32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16 );1060 object = detProcessedExpRowAlloc(-32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 ); 1073 1061 1074 1062 if (!object) { … … 1100 1088 exit(EXIT_FAILURE); 1101 1089 } 1102 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1103 psFree(object); 1104 exit(EXIT_FAILURE); 1105 } 1106 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1090 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1107 1091 psFree(object); 1108 1092 exit(EXIT_FAILURE); … … 1201 1185 detNormalizedImfileRow *object; 1202 1186 1203 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16 );1187 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 ); 1204 1188 1205 1189 if (!object) { … … 1235 1219 exit(EXIT_FAILURE); 1236 1220 } 1237 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1238 psFree(object); 1239 exit(EXIT_FAILURE); 1240 } 1241 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1221 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1242 1222 psFree(object); 1243 1223 exit(EXIT_FAILURE); … … 1254 1234 detNormalizedExpRow *object; 1255 1235 1256 object = detNormalizedExpRowAlloc(-32, -32, "a string", 64.64, 64.64, 64.64, "a string", "a string",-16 );1236 object = detNormalizedExpRowAlloc(-32, -32, "a string", 64.64, 64.64, 64.64, "a string", -16 ); 1257 1237 1258 1238 if (!object) { … … 1284 1264 exit(EXIT_FAILURE); 1285 1265 } 1286 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1287 psFree(object); 1288 exit(EXIT_FAILURE); 1289 } 1290 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1266 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1291 1267 psFree(object); 1292 1268 exit(EXIT_FAILURE); … … 1303 1279 detResidImfileRow *object; 1304 1280 1305 object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16 );1281 object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 ); 1306 1282 1307 1283 if (!object) { … … 1345 1321 exit(EXIT_FAILURE); 1346 1322 } 1347 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1348 psFree(object); 1349 exit(EXIT_FAILURE); 1350 } 1351 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1323 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1352 1324 psFree(object); 1353 1325 exit(EXIT_FAILURE); … … 1364 1336 detResidExpRow *object; 1365 1337 1366 object = detResidExpRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",true, -16 );1338 object = detResidExpRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", true, -16 ); 1367 1339 1368 1340 if (!object) { … … 1398 1370 exit(EXIT_FAILURE); 1399 1371 } 1400 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1401 psFree(object); 1402 exit(EXIT_FAILURE); 1403 } 1404 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1372 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1405 1373 psFree(object); 1406 1374 exit(EXIT_FAILURE); … … 1527 1495 warpSkyCellMapRow *object; 1528 1496 1529 object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string" );1497 object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string", -16 ); 1530 1498 1531 1499 if (!object) { … … 1554 1522 } 1555 1523 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 1524 psFree(object); 1525 exit(EXIT_FAILURE); 1526 } 1527 if (!object->fault == -16) { 1556 1528 psFree(object); 1557 1529 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
