IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2007, 5:58:26 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.7

File:
1 edited

Legend:

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

    r11809 r11820  
    311311        rawExpRow       *object;
    312312
    313         object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", -16    );
     313        object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", 32.32, -16    );
    314314
    315315        if (!object) {
     
    400400            exit(EXIT_FAILURE);
    401401        }
     402        if (!object->solang == 32.32) {
     403            psFree(object);
     404            exit(EXIT_FAILURE);
     405        }
    402406        if (!object->fault == -16) {
    403407            psFree(object);
     
    832836        detRunRow       *object;
    833837
    834         object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z"    );
     838        object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32    );
    835839
    836840        if (!object) {
     
    925929            exit(EXIT_FAILURE);
    926930        }
     931        if (!object->solang_min == 32.32) {
     932            psFree(object);
     933            exit(EXIT_FAILURE);
     934        }
     935        if (!object->solang_max == 32.32) {
     936            psFree(object);
     937            exit(EXIT_FAILURE);
     938        }
     939        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     940            psFree(object);
     941            exit(EXIT_FAILURE);
     942        }
     943        if (!object->parent == -32) {
     944            psFree(object);
     945            exit(EXIT_FAILURE);
     946        }
    927947
    928948        psFree(object);
     
    15811601        p5InputScfileRow *object;
    15821602
    1583         object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", -32, "a string", true    );
     1603        object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", true    );
    15841604
    15851605        if (!object) {
     
    16031623            exit(EXIT_FAILURE);
    16041624        }
    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         }
    16131625        if (strncmp(object->kind, "a string", MAX_STRING_LENGTH)) {
    16141626            psFree(object);
     
    16531665        }
    16541666        if (!object->bg_mean_stdev == 64.64) {
     1667            psFree(object);
     1668            exit(EXIT_FAILURE);
     1669        }
     1670
     1671        psFree(object);
     1672    }
     1673
     1674    {
     1675        p6RunRow        *object;
     1676
     1677        object = p6RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z"    );
     1678
     1679        if (!object) {
     1680            exit(EXIT_FAILURE);
     1681        }
     1682
     1683        if (!object->p6_id == -32) {
     1684            psFree(object);
     1685            exit(EXIT_FAILURE);
     1686        }
     1687        if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
     1688            psFree(object);
     1689            exit(EXIT_FAILURE);
     1690        }
     1691        if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
     1692            psFree(object);
     1693            exit(EXIT_FAILURE);
     1694        }
    16551695            psFree(object);
    16561696            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.