Changeset 8006 for branches/jhoblitt/ippdb/tests/objectfrommetadata.c
- Timestamp:
- Jul 31, 2006, 11:44:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/jhoblitt/ippdb/tests/objectfrommetadata.c
r7500 r8006 1577 1577 1578 1578 md = psMetadataAlloc(); 1579 if (!psMetadataAddS32(md, PS_LIST_TAIL, "iteration", 0, NULL, -32)) { 1580 psFree(md); 1581 exit(EXIT_FAILURE); 1582 } 1579 1583 if (!psMetadataAddStr(md, PS_LIST_TAIL, "det_type", 0, NULL, "a string")) { 1580 1584 psFree(md); 1581 1585 exit(EXIT_FAILURE); 1582 1586 } 1583 if (!psMetadataAddS32(md, PS_LIST_TAIL, "iteration", 0, NULL, -32)) {1584 psFree(md);1585 exit(EXIT_FAILURE);1586 }1587 1587 1588 1588 object = detRunObjectFromMetadata(md); … … 1594 1594 psFree(md); 1595 1595 1596 if (!object->iteration == -32) { 1597 psFree(object); 1598 exit(EXIT_FAILURE); 1599 } 1596 1600 if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) { 1597 psFree(object);1598 exit(EXIT_FAILURE);1599 }1600 if (!object->iteration == -32) {1601 1601 psFree(object); 1602 1602 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
