Changeset 16731 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Feb 28, 2008, 3:04:07 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r16616 r16731 1283 1283 bool status; 1284 1284 1285 object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");1285 object = warpRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", true); 1286 1286 if (!object) { 1287 1287 exit(EXIT_FAILURE); … … 1298 1298 exit(EXIT_FAILURE); 1299 1299 } 1300 psFree(md); 1301 exit(EXIT_FAILURE); 1302 } 1300 1303 if (strncmp(psMetadataLookupPtr(&status, md, "mode"), "a string", MAX_STRING_LENGTH)) { 1301 1304 psFree(md); … … 1329 1332 exit(EXIT_FAILURE); 1330 1333 } 1331 1332 psFree(md);1333 }1334 1335 {1336 psMetadata *md;1337 warpInputExpRow *object;1338 bool status;1339 1340 object = warpInputExpRowAlloc(-64, -64, true);1341 if (!object) {1342 exit(EXIT_FAILURE);1343 }1344 1345 md = warpInputExpMetadataFromObject(object);1346 if (!md) {1347 exit(EXIT_FAILURE);1348 }1349 1350 psFree(object);1351 1352 psFree(md);1353 exit(EXIT_FAILURE);1354 }1355 psFree(md);1356 exit(EXIT_FAILURE);1357 }1358 1334 if (!psMetadataLookupBool(&status, md, "magiced") == true) { 1359 1335 psFree(md); … … 3067 3043 bool status; 3068 3044 3069 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string" );3045 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string"); 3070 3046 if (!object) { 3071 3047 exit(EXIT_FAILURE); … … 3103 3079 } 3104 3080 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) { 3081 psFree(md); 3082 exit(EXIT_FAILURE); 3083 } 3084 if (strncmp(psMetadataLookupPtr(&status, md, "region"), "a string", MAX_STRING_LENGTH)) { 3105 3085 psFree(md); 3106 3086 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
