Changeset 8094 for branches/jhoblitt/ippdb/tests/metadatafromobject.c
- Timestamp:
- Aug 2, 2006, 4:55:32 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/jhoblitt/ippdb/tests/metadatafromobject.c
r8089 r8094 907 907 bool status; 908 908 909 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string",-32, -32);909 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32); 910 910 if (!object) { 911 911 exit(EXIT_FAILURE); … … 931 931 exit(EXIT_FAILURE); 932 932 } 933 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) {934 psFree(md);935 exit(EXIT_FAILURE);936 }937 933 if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) { 938 934 psFree(md); … … 1033 1029 bool status; 1034 1030 1035 object = p2DoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string",-32, -32);1031 object = p2DoneImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32); 1036 1032 if (!object) { 1037 1033 exit(EXIT_FAILURE); … … 1057 1053 exit(EXIT_FAILURE); 1058 1054 } 1059 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) {1060 psFree(md);1061 exit(EXIT_FAILURE);1062 }1063 1055 if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) { 1064 1056 psFree(md); … … 1257 1249 bool status; 1258 1250 1259 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string" , "a string");1251 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string"); 1260 1252 if (!object) { 1261 1253 exit(EXIT_FAILURE); … … 1285 1277 exit(EXIT_FAILURE); 1286 1278 } 1287 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) {1288 psFree(md);1289 exit(EXIT_FAILURE);1290 }1291 1279 if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) { 1292 1280 psFree(md); … … 1302 1290 bool status; 1303 1291 1304 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string" , "a string");1292 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string"); 1305 1293 if (!object) { 1306 1294 exit(EXIT_FAILURE); … … 1330 1318 exit(EXIT_FAILURE); 1331 1319 } 1332 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) {1333 psFree(md);1334 exit(EXIT_FAILURE);1335 }1336 1320 if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) { 1337 1321 psFree(md); … … 1347 1331 bool status; 1348 1332 1349 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string" , "a string");1333 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string"); 1350 1334 if (!object) { 1351 1335 exit(EXIT_FAILURE); … … 1375 1359 exit(EXIT_FAILURE); 1376 1360 } 1377 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) {1378 psFree(md);1379 exit(EXIT_FAILURE);1380 }1381 1361 if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) { 1382 1362 psFree(md); … … 1425 1405 bool status; 1426 1406 1427 object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string" , "a string");1407 object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string"); 1428 1408 if (!object) { 1429 1409 exit(EXIT_FAILURE); … … 1449 1429 exit(EXIT_FAILURE); 1450 1430 } 1451 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) {1452 psFree(md);1453 exit(EXIT_FAILURE);1454 }1455 1431 if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) { 1456 1432 psFree(md); … … 1466 1442 bool status; 1467 1443 1468 object = detResidImfileAnalysisRowAlloc(-32, -32, "a string", "a string", "a string" , "a string");1444 object = detResidImfileAnalysisRowAlloc(-32, -32, "a string", "a string", "a string"); 1469 1445 if (!object) { 1470 1446 exit(EXIT_FAILURE); … … 1494 1470 exit(EXIT_FAILURE); 1495 1471 } 1496 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) {1497 psFree(md);1498 exit(EXIT_FAILURE);1499 }1500 1472 if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) { 1501 1473 psFree(md); … … 1511 1483 bool status; 1512 1484 1513 object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", "a string",true);1485 object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true); 1514 1486 if (!object) { 1515 1487 exit(EXIT_FAILURE); … … 1532 1504 } 1533 1505 if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) { 1534 psFree(md);1535 exit(EXIT_FAILURE);1536 }1537 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) {1538 1506 psFree(md); 1539 1507 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
