Changeset 16616 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Feb 22, 2008, 11:49:29 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r16587 r16616 3142 3142 bool status; 3143 3143 3144 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string" );3144 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string", "a string"); 3145 3145 if (!object) { 3146 3146 exit(EXIT_FAILURE); … … 3157 3157 exit(EXIT_FAILURE); 3158 3158 } 3159 if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) { 3160 psFree(md); 3161 exit(EXIT_FAILURE); 3162 } 3163 if (strncmp(psMetadataLookupPtr(&status, md, "lastFileset"), "a string", MAX_STRING_LENGTH)) { 3164 psFree(md); 3165 exit(EXIT_FAILURE); 3166 } 3167 if (strncmp(psMetadataLookupPtr(&status, md, "outProduct"), "a string", MAX_STRING_LENGTH)) { 3168 psFree(md); 3169 exit(EXIT_FAILURE); 3170 } 3159 3171 if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) { 3160 3172 psFree(md); 3161 3173 exit(EXIT_FAILURE); 3162 3174 } 3163 if (strncmp(psMetadataLookupPtr(&status, md, "lastFileset"), "a string", MAX_STRING_LENGTH)) { 3175 3176 psFree(md); 3177 } 3178 3179 { 3180 psMetadata *md; 3181 pstampRequestRow *object; 3182 bool status; 3183 3184 object = pstampRequestRowAlloc(-64, -64, "a string", "a string", "a string"); 3185 if (!object) { 3186 exit(EXIT_FAILURE); 3187 } 3188 3189 md = pstampRequestMetadataFromObject(object); 3190 if (!md) { 3191 exit(EXIT_FAILURE); 3192 } 3193 3194 psFree(object); 3195 3196 psFree(md); 3197 exit(EXIT_FAILURE); 3198 } 3164 3199 psFree(md); 3165 3200 exit(EXIT_FAILURE); … … 3169 3204 exit(EXIT_FAILURE); 3170 3205 } 3171 3172 psFree(md); 3173 } 3174 3175 { 3176 psMetadata *md; 3177 pstampRequestRow *object; 3178 bool status; 3179 3180 object = pstampRequestRowAlloc(-64, -64, "a string", "a string"); 3181 if (!object) { 3182 exit(EXIT_FAILURE); 3183 } 3184 3185 md = pstampRequestMetadataFromObject(object); 3186 if (!md) { 3187 exit(EXIT_FAILURE); 3188 } 3189 3190 psFree(object); 3191 3192 psFree(md); 3193 exit(EXIT_FAILURE); 3194 } 3195 psFree(md); 3196 exit(EXIT_FAILURE); 3197 } 3198 if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) { 3206 if (strncmp(psMetadataLookupPtr(&status, md, "outFileset"), "a string", MAX_STRING_LENGTH)) { 3199 3207 psFree(md); 3200 3208 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
