Changeset 11867 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Feb 16, 2007, 4:42:59 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r11820 r11867 1700 1700 } 1701 1701 1702 { 1703 p6InputScfileRow *object; 1704 1705 object = p6InputScfileRowAlloc(-32, -32, "a string", "a string" ); 1706 1707 if (!object) { 1708 exit(EXIT_FAILURE); 1709 } 1710 1711 if (!object->p6_id == -32) { 1712 psFree(object); 1713 exit(EXIT_FAILURE); 1714 } 1715 if (!object->p4_id == -32) { 1716 psFree(object); 1717 exit(EXIT_FAILURE); 1718 } 1719 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) { 1720 psFree(object); 1721 exit(EXIT_FAILURE); 1722 } 1723 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1724 psFree(object); 1725 exit(EXIT_FAILURE); 1726 } 1727 1728 psFree(object); 1729 } 1730 1731 { 1732 p6SumScfileRow *object; 1733 1734 object = p6SumScfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64 ); 1735 1736 if (!object) { 1737 exit(EXIT_FAILURE); 1738 } 1739 1740 if (!object->p6_id == -32) { 1741 psFree(object); 1742 exit(EXIT_FAILURE); 1743 } 1744 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) { 1745 psFree(object); 1746 exit(EXIT_FAILURE); 1747 } 1748 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1749 psFree(object); 1750 exit(EXIT_FAILURE); 1751 } 1752 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1753 psFree(object); 1754 exit(EXIT_FAILURE); 1755 } 1756 if (!object->bg == 64.64) { 1757 psFree(object); 1758 exit(EXIT_FAILURE); 1759 } 1760 if (!object->bg_mean_stdev == 64.64) { 1761 psFree(object); 1762 exit(EXIT_FAILURE); 1763 } 1764 1765 psFree(object); 1766 } 1767 1702 1768 exit(EXIT_SUCCESS); 1703 1769 }
Note:
See TracChangeset
for help on using the changeset viewer.
