Changeset 9783 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Oct 30, 2006, 11:25:59 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r9705 r9783 551 551 bool status; 552 552 553 object = p2PendingExpRowAlloc("a string", "a string", -32, -32 );553 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string"); 554 554 if (!object) { 555 555 exit(EXIT_FAILURE); … … 579 579 exit(EXIT_FAILURE); 580 580 } 581 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 582 psFree(md); 583 exit(EXIT_FAILURE); 584 } 581 585 582 586 psFree(md); … … 633 637 bool status; 634 638 635 object = p2ProcessedExpRowAlloc("a string", -32, -32 );639 object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string"); 636 640 if (!object) { 637 641 exit(EXIT_FAILURE); … … 654 658 } 655 659 if (!psMetadataLookupS32(&status, md, "p2_version") == -32) { 660 psFree(md); 661 exit(EXIT_FAILURE); 662 } 663 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 664 psFree(md); 665 exit(EXIT_FAILURE); 666 } 667 668 psFree(md); 669 } 670 671 { 672 psMetadata *md; 673 p2MaskRow *object; 674 bool status; 675 676 object = p2MaskRowAlloc("a string"); 677 if (!object) { 678 exit(EXIT_FAILURE); 679 } 680 681 md = p2MaskMetadataFromObject(object); 682 if (!md) { 683 exit(EXIT_FAILURE); 684 } 685 686 psFree(object); 687 688 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 656 689 psFree(md); 657 690 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
