IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2007, 2:14:55 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.76

File:
1 edited

Legend:

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

    r11113 r11136  
    244244        newExpRow       *object;
    245245
    246         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32    );
     246        object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string"    );
    247247
    248248        if (!object) {
     
    277277            exit(EXIT_FAILURE);
    278278        }
     279        if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
     280            psFree(object);
     281            exit(EXIT_FAILURE);
     282        }
    279283
    280284        psFree(object);
     
    313317        rawExpRow       *object;
    314318
    315         object = rawExpRowAlloc("a string", "a string", "a string", "a string", -32, "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", "0001-01-01T00:00:00Z", -16    );
    316 
    317         if (!object) {
    318             exit(EXIT_FAILURE);
    319         }
    320 
    321         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     319        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    );
     320
     321        if (!object) {
     322            exit(EXIT_FAILURE);
     323        }
     324
     325        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     326            psFree(object);
     327            exit(EXIT_FAILURE);
     328        }
     329        if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
    322330            psFree(object);
    323331            exit(EXIT_FAILURE);
     
    331339            exit(EXIT_FAILURE);
    332340        }
     341            psFree(object);
     342            exit(EXIT_FAILURE);
     343        }
    333344        if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) {
    334345            psFree(object);
     
    339350            exit(EXIT_FAILURE);
    340351        }
     352        if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
     353            psFree(object);
     354            exit(EXIT_FAILURE);
     355        }
    341356        if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) {
    342357            psFree(object);
     
    394409            exit(EXIT_FAILURE);
    395410        }
    396             psFree(object);
    397             exit(EXIT_FAILURE);
    398         }
    399411
    400412        psFree(object);
     
    822834        detRunRow       *object;
    823835
    824         object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z"    );
     836        object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z"    );
    825837
    826838        if (!object) {
     
    852864            exit(EXIT_FAILURE);
    853865        }
     866        if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
     867            psFree(object);
     868            exit(EXIT_FAILURE);
     869        }
    854870        if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) {
    855871            psFree(object);
     
    13611377        p4RunRow        *object;
    13621378
    1363         object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string"    );
     1379        object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string"    );
    13641380
    13651381        if (!object) {
     
    13761392        }
    13771393        if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
     1394            psFree(object);
     1395            exit(EXIT_FAILURE);
     1396        }
     1397        if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
    13781398            psFree(object);
    13791399            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.