Changeset 17833 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- May 28, 2008, 11:52:21 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r17570 r17833 339 339 bool status; 340 340 341 object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16);341 object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, "a string", -16); 342 342 if (!object) { 343 343 exit(EXIT_FAILURE); … … 569 569 exit(EXIT_FAILURE); 570 570 } 571 if (strncmp(psMetadataLookupPtr(&status, md, "hostname"), "a string", MAX_STRING_LENGTH)) { 572 psFree(md); 573 exit(EXIT_FAILURE); 574 } 571 575 psFree(md); 572 576 exit(EXIT_FAILURE); … … 581 585 bool status; 582 586 583 object = rawImfileRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16);587 object = rawImfileRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", "a string", -16); 584 588 if (!object) { 585 589 exit(EXIT_FAILURE); … … 795 799 exit(EXIT_FAILURE); 796 800 } 801 if (strncmp(psMetadataLookupPtr(&status, md, "hostname"), "a string", MAX_STRING_LENGTH)) { 802 psFree(md); 803 exit(EXIT_FAILURE); 804 } 797 805 psFree(md); 798 806 exit(EXIT_FAILURE); … … 1394 1402 bool status; 1395 1403 1396 object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, true, -16);1404 object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, -32, -32, -32, -32, true, -16); 1397 1405 if (!object) { 1398 1406 exit(EXIT_FAILURE); … … 1445 1453 exit(EXIT_FAILURE); 1446 1454 } 1455 if (!psMetadataLookupS32(&status, md, "xmin") == -32) { 1456 psFree(md); 1457 exit(EXIT_FAILURE); 1458 } 1459 if (!psMetadataLookupS32(&status, md, "xmax") == -32) { 1460 psFree(md); 1461 exit(EXIT_FAILURE); 1462 } 1463 if (!psMetadataLookupS32(&status, md, "ymin") == -32) { 1464 psFree(md); 1465 exit(EXIT_FAILURE); 1466 } 1467 if (!psMetadataLookupS32(&status, md, "ymax") == -32) { 1468 psFree(md); 1469 exit(EXIT_FAILURE); 1470 } 1447 1471 if (!psMetadataLookupBool(&status, md, "ignored") == true) { 1448 1472 psFree(md); … … 1579 1603 bool status; 1580 1604 1581 object = diffSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, -16);1605 object = diffSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64, -32, 32.32, -32, 32.32, "a string", 32.32, -16); 1582 1606 if (!object) { 1583 1607 exit(EXIT_FAILURE); … … 1607 1631 } 1608 1632 if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) { 1633 psFree(md); 1634 exit(EXIT_FAILURE); 1635 } 1636 if (!psMetadataLookupS32(&status, md, "stamps_num") == -32) { 1637 psFree(md); 1638 exit(EXIT_FAILURE); 1639 } 1640 if (!psMetadataLookupF32(&status, md, "stamps_rms") == 32.32) { 1641 psFree(md); 1642 exit(EXIT_FAILURE); 1643 } 1644 if (!psMetadataLookupS32(&status, md, "sources") == -32) { 1609 1645 psFree(md); 1610 1646 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
