Changeset 12061 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Feb 26, 2007, 1:56:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r12033 r12061 791 791 bool status; 792 792 793 object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16);793 object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16); 794 794 if (!object) { 795 795 exit(EXIT_FAILURE); … … 839 839 exit(EXIT_FAILURE); 840 840 } 841 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 842 psFree(md); 843 exit(EXIT_FAILURE); 844 } 845 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 841 if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) { 846 842 psFree(md); 847 843 exit(EXIT_FAILURE); … … 904 900 bool status; 905 901 906 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");902 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"); 907 903 if (!object) { 908 904 exit(EXIT_FAILURE); … … 964 960 exit(EXIT_FAILURE); 965 961 } 966 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 967 psFree(md); 968 exit(EXIT_FAILURE); 969 } 970 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 962 if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) { 971 963 psFree(md); 972 964 exit(EXIT_FAILURE); … … 1186 1178 bool status; 1187 1179 1188 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16);1180 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16); 1189 1181 if (!object) { 1190 1182 exit(EXIT_FAILURE); … … 1230 1222 exit(EXIT_FAILURE); 1231 1223 } 1232 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 1233 psFree(md); 1234 exit(EXIT_FAILURE); 1235 } 1236 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1224 if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) { 1237 1225 psFree(md); 1238 1226 exit(EXIT_FAILURE); … … 1250 1238 bool status; 1251 1239 1252 object = detProcessedExpRowAlloc(-32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16);1240 object = detProcessedExpRowAlloc(-32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16); 1253 1241 if (!object) { 1254 1242 exit(EXIT_FAILURE); … … 1286 1274 exit(EXIT_FAILURE); 1287 1275 } 1288 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 1289 psFree(md); 1290 exit(EXIT_FAILURE); 1291 } 1292 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1276 if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) { 1293 1277 psFree(md); 1294 1278 exit(EXIT_FAILURE); … … 1402 1386 bool status; 1403 1387 1404 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16);1388 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16); 1405 1389 if (!object) { 1406 1390 exit(EXIT_FAILURE); … … 1442 1426 exit(EXIT_FAILURE); 1443 1427 } 1444 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 1445 psFree(md); 1446 exit(EXIT_FAILURE); 1447 } 1448 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1428 if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) { 1449 1429 psFree(md); 1450 1430 exit(EXIT_FAILURE); … … 1462 1442 bool status; 1463 1443 1464 object = detNormalizedExpRowAlloc(-32, -32, "a string", 64.64, 64.64, 64.64, "a string", "a string",-16);1444 object = detNormalizedExpRowAlloc(-32, -32, "a string", 64.64, 64.64, 64.64, "a string", -16); 1465 1445 if (!object) { 1466 1446 exit(EXIT_FAILURE); … … 1498 1478 exit(EXIT_FAILURE); 1499 1479 } 1500 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 1501 psFree(md); 1502 exit(EXIT_FAILURE); 1503 } 1504 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1480 if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) { 1505 1481 psFree(md); 1506 1482 exit(EXIT_FAILURE); … … 1518 1494 bool status; 1519 1495 1520 object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",-16);1496 object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16); 1521 1497 if (!object) { 1522 1498 exit(EXIT_FAILURE); … … 1566 1542 exit(EXIT_FAILURE); 1567 1543 } 1568 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 1569 psFree(md); 1570 exit(EXIT_FAILURE); 1571 } 1572 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1544 if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) { 1573 1545 psFree(md); 1574 1546 exit(EXIT_FAILURE); … … 1586 1558 bool status; 1587 1559 1588 object = detResidExpRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string",true, -16);1560 object = detResidExpRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", true, -16); 1589 1561 if (!object) { 1590 1562 exit(EXIT_FAILURE); … … 1626 1598 exit(EXIT_FAILURE); 1627 1599 } 1628 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 1629 psFree(md); 1630 exit(EXIT_FAILURE); 1631 } 1632 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1600 if (strncmp(psMetadataLookupPtr(&status, md, "path_base"), "a string", MAX_STRING_LENGTH)) { 1633 1601 psFree(md); 1634 1602 exit(EXIT_FAILURE); … … 1779 1747 bool status; 1780 1748 1781 object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string" );1749 object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string", -16); 1782 1750 if (!object) { 1783 1751 exit(EXIT_FAILURE); … … 1812 1780 } 1813 1781 if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) { 1782 psFree(md); 1783 exit(EXIT_FAILURE); 1784 } 1814 1785 psFree(md); 1815 1786 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
