IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2007, 4:02:28 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.6

File:
1 edited

Legend:

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

    r11780 r11809  
    15501550    }
    15511551
     1552    {
     1553        p5RunRow        *object;
     1554
     1555        object = p5RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z"    );
     1556
     1557        if (!object) {
     1558            exit(EXIT_FAILURE);
     1559        }
     1560
     1561        if (!object->p5_id == -32) {
     1562            psFree(object);
     1563            exit(EXIT_FAILURE);
     1564        }
     1565        if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
     1566            psFree(object);
     1567            exit(EXIT_FAILURE);
     1568        }
     1569        if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
     1570            psFree(object);
     1571            exit(EXIT_FAILURE);
     1572        }
     1573            psFree(object);
     1574            exit(EXIT_FAILURE);
     1575        }
     1576
     1577        psFree(object);
     1578    }
     1579
     1580    {
     1581        p5InputScfileRow *object;
     1582
     1583        object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", -32, "a string", true    );
     1584
     1585        if (!object) {
     1586            exit(EXIT_FAILURE);
     1587        }
     1588
     1589        if (!object->p5_id == -32) {
     1590            psFree(object);
     1591            exit(EXIT_FAILURE);
     1592        }
     1593        if (!object->p4_id == -32) {
     1594            psFree(object);
     1595            exit(EXIT_FAILURE);
     1596        }
     1597        if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {
     1598            psFree(object);
     1599            exit(EXIT_FAILURE);
     1600        }
     1601        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     1602            psFree(object);
     1603            exit(EXIT_FAILURE);
     1604        }
     1605        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     1606            psFree(object);
     1607            exit(EXIT_FAILURE);
     1608        }
     1609        if (!object->p3_version == -32) {
     1610            psFree(object);
     1611            exit(EXIT_FAILURE);
     1612        }
     1613        if (strncmp(object->kind, "a string", MAX_STRING_LENGTH)) {
     1614            psFree(object);
     1615            exit(EXIT_FAILURE);
     1616        }
     1617        if (!object->template == true) {
     1618            psFree(object);
     1619            exit(EXIT_FAILURE);
     1620        }
     1621
     1622        psFree(object);
     1623    }
     1624
     1625    {
     1626        p5DiffScfileRow *object;
     1627
     1628        object = p5DiffScfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64    );
     1629
     1630        if (!object) {
     1631            exit(EXIT_FAILURE);
     1632        }
     1633
     1634        if (!object->p5_id == -32) {
     1635            psFree(object);
     1636            exit(EXIT_FAILURE);
     1637        }
     1638        if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {
     1639            psFree(object);
     1640            exit(EXIT_FAILURE);
     1641        }
     1642        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     1643            psFree(object);
     1644            exit(EXIT_FAILURE);
     1645        }
     1646        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     1647            psFree(object);
     1648            exit(EXIT_FAILURE);
     1649        }
     1650        if (!object->bg == 64.64) {
     1651            psFree(object);
     1652            exit(EXIT_FAILURE);
     1653        }
     1654        if (!object->bg_mean_stdev == 64.64) {
     1655            psFree(object);
     1656            exit(EXIT_FAILURE);
     1657        }
     1658
     1659        psFree(object);
     1660    }
     1661
    15521662    exit(EXIT_SUCCESS);
    15531663}
Note: See TracChangeset for help on using the changeset viewer.