IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 21, 2007, 4:29:12 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/alloc.c

    r11873 r11988  
    15621562
    15631563    {
    1564         p4ScfileRow     *object;
    1565 
    1566         object = p4ScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64    );
     1564        p4SkyfileRow    *object;
     1565
     1566        object = p4SkyfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64    );
    15671567
    15681568        if (!object) {
     
    15821582            exit(EXIT_FAILURE);
    15831583        }
    1584         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    1585             psFree(object);
    1586             exit(EXIT_FAILURE);
    1587         }
    1588         if (!object->p3_version == -32) {
    1589             psFree(object);
    1590             exit(EXIT_FAILURE);
    1591         }
    15921584        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    15931585            psFree(object);
     
    16091601        p5RunRow        *object;
    16101602
    1611         object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
     1603        object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"    );
    16121604
    16131605        if (!object) {
     
    16341626            exit(EXIT_FAILURE);
    16351627        }
    1636 
    1637         psFree(object);
    1638     }
    1639 
    1640     {
    1641         p5InputScfileRow *object;
    1642 
    1643         object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", true    );
     1628        if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {
     1629            psFree(object);
     1630            exit(EXIT_FAILURE);
     1631        }
     1632        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     1633            psFree(object);
     1634            exit(EXIT_FAILURE);
     1635        }
     1636
     1637        psFree(object);
     1638    }
     1639
     1640    {
     1641        p5InputSkyfileRow *object;
     1642
     1643        object = p5InputSkyfileRowAlloc(-32, -32, "a string", "a string", "a string", true    );
    16441644
    16451645        if (!object) {
     
    16761676
    16771677    {
    1678         p5DiffScfileRow *object;
    1679 
    1680         object = p5DiffScfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64    );
     1678        p5DiffSkyfileRow *object;
     1679
     1680        object = p5DiffSkyfileRowAlloc(-32, "a string", 64.64, 64.64    );
    16811681
    16821682        if (!object) {
     
    16881688            exit(EXIT_FAILURE);
    16891689        }
     1690        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     1691            psFree(object);
     1692            exit(EXIT_FAILURE);
     1693        }
     1694        if (!object->bg == 64.64) {
     1695            psFree(object);
     1696            exit(EXIT_FAILURE);
     1697        }
     1698        if (!object->bg_mean_stdev == 64.64) {
     1699            psFree(object);
     1700            exit(EXIT_FAILURE);
     1701        }
     1702
     1703        psFree(object);
     1704    }
     1705
     1706    {
     1707        p6RunRow        *object;
     1708
     1709        object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"    );
     1710
     1711        if (!object) {
     1712            exit(EXIT_FAILURE);
     1713        }
     1714
     1715        if (!object->p6_id == -32) {
     1716            psFree(object);
     1717            exit(EXIT_FAILURE);
     1718        }
     1719        if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
     1720            psFree(object);
     1721            exit(EXIT_FAILURE);
     1722        }
     1723        if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
     1724            psFree(object);
     1725            exit(EXIT_FAILURE);
     1726        }
     1727        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     1728            psFree(object);
     1729            exit(EXIT_FAILURE);
     1730        }
     1731            psFree(object);
     1732            exit(EXIT_FAILURE);
     1733        }
    16901734        if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {
    16911735            psFree(object);
     
    16961740            exit(EXIT_FAILURE);
    16971741        }
    1698         if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    1699             psFree(object);
    1700             exit(EXIT_FAILURE);
    1701         }
    1702         if (!object->bg == 64.64) {
    1703             psFree(object);
    1704             exit(EXIT_FAILURE);
    1705         }
    1706         if (!object->bg_mean_stdev == 64.64) {
    1707             psFree(object);
    1708             exit(EXIT_FAILURE);
    1709         }
    1710 
    1711         psFree(object);
    1712     }
    1713 
    1714     {
    1715         p6RunRow        *object;
    1716 
    1717         object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
     1742
     1743        psFree(object);
     1744    }
     1745
     1746    {
     1747        p6InputSkyfileRow *object;
     1748
     1749        object = p6InputSkyfileRowAlloc(-32, -32    );
    17181750
    17191751        if (!object) {
     
    17251757            exit(EXIT_FAILURE);
    17261758        }
    1727         if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
    1728             psFree(object);
    1729             exit(EXIT_FAILURE);
    1730         }
    1731         if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
    1732             psFree(object);
    1733             exit(EXIT_FAILURE);
    1734         }
    1735         if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
    1736             psFree(object);
    1737             exit(EXIT_FAILURE);
    1738         }
    1739             psFree(object);
    1740             exit(EXIT_FAILURE);
    1741         }
    1742 
    1743         psFree(object);
    1744     }
    1745 
    1746     {
    1747         p6InputScfileRow *object;
    1748 
    1749         object = p6InputScfileRowAlloc(-32, -32, "a string", "a string"    );
     1759        if (!object->p4_id == -32) {
     1760            psFree(object);
     1761            exit(EXIT_FAILURE);
     1762        }
     1763
     1764        psFree(object);
     1765    }
     1766
     1767    {
     1768        p6SumSkyfileRow *object;
     1769
     1770        object = p6SumSkyfileRowAlloc(-32, "a string", 64.64, 64.64    );
    17501771
    17511772        if (!object) {
     
    17541775
    17551776        if (!object->p6_id == -32) {
    1756             psFree(object);
    1757             exit(EXIT_FAILURE);
    1758         }
    1759         if (!object->p4_id == -32) {
    1760             psFree(object);
    1761             exit(EXIT_FAILURE);
    1762         }
    1763         if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {
    1764             psFree(object);
    1765             exit(EXIT_FAILURE);
    1766         }
    1767         if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
    1768             psFree(object);
    1769             exit(EXIT_FAILURE);
    1770         }
    1771 
    1772         psFree(object);
    1773     }
    1774 
    1775     {
    1776         p6SumScfileRow  *object;
    1777 
    1778         object = p6SumScfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64    );
    1779 
    1780         if (!object) {
    1781             exit(EXIT_FAILURE);
    1782         }
    1783 
    1784         if (!object->p6_id == -32) {
    1785             psFree(object);
    1786             exit(EXIT_FAILURE);
    1787         }
    1788         if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {
    1789             psFree(object);
    1790             exit(EXIT_FAILURE);
    1791         }
    1792         if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
    17931777            psFree(object);
    17941778            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.