Changeset 9788 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Oct 30, 2006, 11:55:36 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r9783 r9788 764 764 bool status; 765 765 766 object = p3PendingExpRowAlloc("a string", -32, -32 );766 object = p3PendingExpRowAlloc("a string", -32, -32, "a string"); 767 767 if (!object) { 768 768 exit(EXIT_FAILURE); … … 788 788 exit(EXIT_FAILURE); 789 789 } 790 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 791 psFree(md); 792 exit(EXIT_FAILURE); 793 } 790 794 791 795 psFree(md); … … 797 801 bool status; 798 802 799 object = p3ProcessedExpRowAlloc("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, -32, -32 );803 object = p3ProcessedExpRowAlloc("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, -32, -32, "a string"); 800 804 if (!object) { 801 805 exit(EXIT_FAILURE); … … 866 870 } 867 871 if (!psMetadataLookupS32(&status, md, "p3_version") == -32) { 872 psFree(md); 873 exit(EXIT_FAILURE); 874 } 875 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 876 psFree(md); 877 exit(EXIT_FAILURE); 878 } 879 880 psFree(md); 881 } 882 883 { 884 psMetadata *md; 885 p3MaskRow *object; 886 bool status; 887 888 object = p3MaskRowAlloc("a string"); 889 if (!object) { 890 exit(EXIT_FAILURE); 891 } 892 893 md = p3MaskMetadataFromObject(object); 894 if (!md) { 895 exit(EXIT_FAILURE); 896 } 897 898 psFree(object); 899 900 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 868 901 psFree(md); 869 902 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
