IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2007, 3:18:04 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.3

File:
1 edited

Legend:

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

    r11679 r11720  
    14081408
    14091409    {
    1410         p4aRunRow       *object;
    1411 
    1412         object = p4aRunRowAlloc(-32, "a string", "a string", true    );
     1410        p4RunRow        *object;
     1411
     1412        object = p4RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
    14131413
    14141414        if (!object) {
     
    14201420            exit(EXIT_FAILURE);
    14211421        }
     1422        if (strncmp(object->mode, "a string", MAX_STRING_LENGTH)) {
     1423            psFree(object);
     1424            exit(EXIT_FAILURE);
     1425        }
    14221426        if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
    14231427            psFree(object);
     
    14281432            exit(EXIT_FAILURE);
    14291433        }
    1430         if (!object->magic == true) {
    1431             psFree(object);
    1432             exit(EXIT_FAILURE);
    1433         }
    1434 
    1435         psFree(object);
    1436     }
    1437 
    1438     {
    1439         p4aInputExpRow  *object;
    1440 
    1441         object = p4aInputExpRowAlloc(-32, "a string", -32    );
     1434            psFree(object);
     1435            exit(EXIT_FAILURE);
     1436        }
     1437
     1438        psFree(object);
     1439    }
     1440
     1441    {
     1442        p4InputExpRow   *object;
     1443
     1444        object = p4InputExpRowAlloc(-32, "a string", -32, true    );
    14421445
    14431446        if (!object) {
     
    14571460            exit(EXIT_FAILURE);
    14581461        }
    1459 
    1460         psFree(object);
    1461     }
    1462 
    1463     {
    1464         p4aScfileRow    *object;
    1465 
    1466         object = p4aScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64    );
     1462        if (!object->magiced == true) {
     1463            psFree(object);
     1464            exit(EXIT_FAILURE);
     1465        }
     1466
     1467        psFree(object);
     1468    }
     1469
     1470    {
     1471        p4ScfileRow     *object;
     1472
     1473        object = p4ScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64    );
    14671474
    14681475        if (!object) {
     
    15071514
    15081515    {
    1509         p4bRunRow      *object;
    1510 
    1511         object = p4bRunRowAlloc(-32, "a string", "a string", true    );
     1516        p4InputScfileRow *object;
     1517
     1518        object = p4InputScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string"    );
    15121519
    15131520        if (!object) {
     
    15191526            exit(EXIT_FAILURE);
    15201527        }
    1521         if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
    1522             psFree(object);
    1523             exit(EXIT_FAILURE);
    1524         }
    1525         if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
    1526             psFree(object);
    1527             exit(EXIT_FAILURE);
    1528         }
    1529         if (!object->magic == true) {
    1530             psFree(object);
    1531             exit(EXIT_FAILURE);
    1532         }
    1533 
    1534         psFree(object);
    1535     }
    1536 
    1537     {
    1538         p4bInputScfileRow *object;
    1539 
    1540         object = p4bInputScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string"    );
     1528        if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {
     1529            psFree(object);
     1530            exit(EXIT_FAILURE);
     1531        }
     1532        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     1533            psFree(object);
     1534            exit(EXIT_FAILURE);
     1535        }
     1536        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     1537            psFree(object);
     1538            exit(EXIT_FAILURE);
     1539        }
     1540        if (!object->p3_version == -32) {
     1541            psFree(object);
     1542            exit(EXIT_FAILURE);
     1543        }
     1544        if (strncmp(object->kind, "a string", MAX_STRING_LENGTH)) {
     1545            psFree(object);
     1546            exit(EXIT_FAILURE);
     1547        }
     1548
     1549        psFree(object);
     1550    }
     1551
     1552    {
     1553        p4DiffScfileRow *object;
     1554
     1555        object = p4DiffScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64    );
    15411556
    15421557        if (!object) {
     
    15641579            exit(EXIT_FAILURE);
    15651580        }
    1566         if (strncmp(object->kind, "a string", MAX_STRING_LENGTH)) {
    1567             psFree(object);
    1568             exit(EXIT_FAILURE);
    1569         }
    1570 
    1571         psFree(object);
    1572     }
    1573 
    1574     {
    1575         p4bDiffScfileRow *object;
    1576 
    1577         object = p4bDiffScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64    );
    1578 
    1579         if (!object) {
    1580             exit(EXIT_FAILURE);
    1581         }
    1582 
    1583         if (!object->p4b_id == -32) {
    1584             psFree(object);
    1585             exit(EXIT_FAILURE);
    1586         }
    1587         if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {
    1588             psFree(object);
    1589             exit(EXIT_FAILURE);
    1590         }
    1591         if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
    1592             psFree(object);
    1593             exit(EXIT_FAILURE);
    1594         }
    1595         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    1596             psFree(object);
    1597             exit(EXIT_FAILURE);
    1598         }
    1599         if (!object->p3_version == -32) {
    1600             psFree(object);
    1601             exit(EXIT_FAILURE);
    1602         }
    16031581        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    16041582            psFree(object);
     
    16101588        }
    16111589        if (!object->bg_mean_stdev == 64.64) {
    1612             psFree(object);
    1613             exit(EXIT_FAILURE);
    1614         }
    1615 
    1616         psFree(object);
    1617     }
    1618 
    1619     {
    1620         p4cRunRow       *object;
    1621 
    1622         object = p4cRunRowAlloc(-32, "a string", "a string", true    );
    1623 
    1624         if (!object) {
    1625             exit(EXIT_FAILURE);
    1626         }
    1627 
    1628         if (!object->p4c_id == -32) {
    1629             psFree(object);
    1630             exit(EXIT_FAILURE);
    1631         }
    1632         if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
    1633             psFree(object);
    1634             exit(EXIT_FAILURE);
    1635         }
    1636         if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
    1637             psFree(object);
    1638             exit(EXIT_FAILURE);
    1639         }
    1640         if (!object->magic == true) {
    1641             psFree(object);
    1642             exit(EXIT_FAILURE);
    1643         }
    1644 
    1645         psFree(object);
    1646     }
    1647 
    1648     {
    1649         p4cInputExpRow  *object;
    1650 
    1651         object = p4cInputExpRowAlloc(-32, "a string", -32    );
    1652 
    1653         if (!object) {
    1654             exit(EXIT_FAILURE);
    1655         }
    1656 
    1657         if (!object->p4c_id == -32) {
    1658             psFree(object);
    1659             exit(EXIT_FAILURE);
    1660         }
    1661         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    1662             psFree(object);
    1663             exit(EXIT_FAILURE);
    1664         }
    1665         if (!object->p3_version == -32) {
    16661590            psFree(object);
    16671591            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.