IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2007, 6:14:42 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.9

File:
1 edited

Legend:

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

    r11867 r11873  
    532532        p2PendingExpRow *object;
    533533
    534         object = p2PendingExpRowAlloc("a string", -32, -32, "a string", "a string"    );
     534        object = p2PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", "a string"    );
    535535
    536536        if (!object) {
     
    558558            exit(EXIT_FAILURE);
    559559        }
     560        if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) {
     561            psFree(object);
     562            exit(EXIT_FAILURE);
     563        }
     564        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     565            psFree(object);
     566            exit(EXIT_FAILURE);
     567        }
    560568
    561569        psFree(object);
     
    602610        p2ProcessedExpRow *object;
    603611
    604         object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string"    );
     612        object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string"    );
    605613
    606614        if (!object) {
     
    624632            exit(EXIT_FAILURE);
    625633        }
     634        if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) {
     635            psFree(object);
     636            exit(EXIT_FAILURE);
     637        }
     638        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     639            psFree(object);
     640            exit(EXIT_FAILURE);
     641        }
    626642
    627643        psFree(object);
     
    709725        p3PendingExpRow *object;
    710726
    711         object = p3PendingExpRowAlloc("a string", -32, -32, "a string"    );
     727        object = p3PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string"    );
    712728
    713729        if (!object) {
     
    731747            exit(EXIT_FAILURE);
    732748        }
     749        if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) {
     750            psFree(object);
     751            exit(EXIT_FAILURE);
     752        }
     753        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     754            psFree(object);
     755            exit(EXIT_FAILURE);
     756        }
    733757
    734758        psFree(object);
     
    738762        p3ProcessedExpRow *object;
    739763
    740         object = p3ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -16    );
     764        object = p3ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -16, "a string", "a string"    );
    741765
    742766        if (!object) {
     
    812836            exit(EXIT_FAILURE);
    813837        }
     838        if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) {
     839            psFree(object);
     840            exit(EXIT_FAILURE);
     841        }
     842        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     843            psFree(object);
     844            exit(EXIT_FAILURE);
     845        }
    814846
    815847        psFree(object);
     
    14301462        p4RunRow        *object;
    14311463
    1432         object = p4RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
     1464        object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
    14331465
    14341466        if (!object) {
     
    14521484            exit(EXIT_FAILURE);
    14531485        }
     1486        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     1487            psFree(object);
     1488            exit(EXIT_FAILURE);
     1489        }
    14541490            psFree(object);
    14551491            exit(EXIT_FAILURE);
     
    15731609        p5RunRow        *object;
    15741610
    1575         object = p5RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z"    );
     1611        object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
    15761612
    15771613        if (!object) {
     
    15911627            exit(EXIT_FAILURE);
    15921628        }
     1629        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     1630            psFree(object);
     1631            exit(EXIT_FAILURE);
     1632        }
    15931633            psFree(object);
    15941634            exit(EXIT_FAILURE);
     
    16751715        p6RunRow        *object;
    16761716
    1677         object = p6RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z"    );
     1717        object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
    16781718
    16791719        if (!object) {
     
    16901730        }
    16911731        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)) {
    16921736            psFree(object);
    16931737            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.