Changeset 9788 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Oct 30, 2006, 11:55:36 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r9783 r9788 650 650 p3PendingExpRow *object; 651 651 652 object = p3PendingExpRowAlloc("a string", -32, -32 );652 object = p3PendingExpRowAlloc("a string", -32, -32, "a string" ); 653 653 654 654 if (!object) { … … 668 668 exit(EXIT_FAILURE); 669 669 } 670 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 671 psFree(object); 672 exit(EXIT_FAILURE); 673 } 670 674 671 675 psFree(object); … … 675 679 p3ProcessedExpRow *object; 676 680 677 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32 );681 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string" ); 678 682 679 683 if (!object) { … … 738 742 } 739 743 if (!object->p3_version == -32) { 744 psFree(object); 745 exit(EXIT_FAILURE); 746 } 747 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 748 psFree(object); 749 exit(EXIT_FAILURE); 750 } 751 752 psFree(object); 753 } 754 755 { 756 p3MaskRow *object; 757 758 object = p3MaskRowAlloc("a string" ); 759 760 if (!object) { 761 exit(EXIT_FAILURE); 762 } 763 764 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 740 765 psFree(object); 741 766 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
