Changeset 8026 for branches/jhoblitt/ippdb/tests/objectfrommetadata.c
- Timestamp:
- Jul 31, 2006, 4:12:32 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/jhoblitt/ippdb/tests/objectfrommetadata.c
r8020 r8026 693 693 exit(EXIT_FAILURE); 694 694 } 695 if (!psMetadataAddStr(md, PS_LIST_TAIL, "class", 0, NULL, "a string")) { 696 psFree(md); 697 exit(EXIT_FAILURE); 698 } 695 699 if (!psMetadataAddStr(md, PS_LIST_TAIL, "class_id", 0, NULL, "a string")) { 696 700 psFree(md); … … 722 726 exit(EXIT_FAILURE); 723 727 } 728 if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) { 729 psFree(object); 730 exit(EXIT_FAILURE); 731 } 724 732 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 725 733 psFree(object); … … 801 809 exit(EXIT_FAILURE); 802 810 } 811 if (!psMetadataAddStr(md, PS_LIST_TAIL, "class", 0, NULL, "a string")) { 812 psFree(md); 813 exit(EXIT_FAILURE); 814 } 803 815 if (!psMetadataAddStr(md, PS_LIST_TAIL, "class_id", 0, NULL, "a string")) { 804 816 psFree(md); … … 822 834 exit(EXIT_FAILURE); 823 835 } 836 if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) { 837 psFree(object); 838 exit(EXIT_FAILURE); 839 } 824 840 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 825 841 psFree(object); … … 991 1007 exit(EXIT_FAILURE); 992 1008 } 1009 if (!psMetadataAddStr(md, PS_LIST_TAIL, "class", 0, NULL, "a string")) { 1010 psFree(md); 1011 exit(EXIT_FAILURE); 1012 } 993 1013 if (!psMetadataAddStr(md, PS_LIST_TAIL, "class_id", 0, NULL, "a string")) { 994 1014 psFree(md); … … 1013 1033 1014 1034 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 1035 psFree(object); 1036 exit(EXIT_FAILURE); 1037 } 1038 if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) { 1015 1039 psFree(object); 1016 1040 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
