IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2008, 10:30:49 AM (18 years ago)
Author:
jhoblitt
Message:

update

File:
1 edited

Legend:

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

    r15792 r16177  
    245245        newExpRow       *object;
    246246
    247         object = newExpRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string"    );
     247        object = newExpRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string"    );
    248248
    249249        if (!object) {
     
    283283            exit(EXIT_FAILURE);
    284284        }
     285        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     286            psFree(object);
     287            exit(EXIT_FAILURE);
     288        }
     289        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     290            psFree(object);
     291            exit(EXIT_FAILURE);
     292        }
     293        if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) {
     294            psFree(object);
     295            exit(EXIT_FAILURE);
     296        }
    285297
    286298        psFree(object);
     
    315327        rawExpRow       *object;
    316328
    317         object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16    );
     329        object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16    );
    318330
    319331        if (!object) {
     
    360372            exit(EXIT_FAILURE);
    361373        }
     374        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     375            psFree(object);
     376            exit(EXIT_FAILURE);
     377        }
     378        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     379            psFree(object);
     380            exit(EXIT_FAILURE);
     381        }
     382        if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) {
     383            psFree(object);
     384            exit(EXIT_FAILURE);
     385        }
    362386        if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) {
    363387            psFree(object);
     
    784808        chipRunRow      *object;
    785809
    786         object = chipRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string"    );
     810        object = chipRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string"    );
    787811
    788812        if (!object) {
     
    826850            exit(EXIT_FAILURE);
    827851        }
     852        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     853            psFree(object);
     854            exit(EXIT_FAILURE);
     855        }
     856        if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) {
     857            psFree(object);
     858            exit(EXIT_FAILURE);
     859        }
    828860
    829861        psFree(object);
     
    959991        camRunRow       *object;
    960992
    961         object = camRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string"    );
     993        object = camRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string"    );
    962994
    963995        if (!object) {
     
    10011033            exit(EXIT_FAILURE);
    10021034        }
     1035        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     1036            psFree(object);
     1037            exit(EXIT_FAILURE);
     1038        }
     1039        if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) {
     1040            psFree(object);
     1041            exit(EXIT_FAILURE);
     1042        }
    10031043
    10041044        psFree(object);
     
    11101150        warpRunRow      *object;
    11111151
    1112         object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
     1152        object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
    11131153
    11141154        if (!object) {
     
    11321172            exit(EXIT_FAILURE);
    11331173        }
     1174        if (strncmp(object->workdir_state, "a string", MAX_STRING_LENGTH)) {
     1175            psFree(object);
     1176            exit(EXIT_FAILURE);
     1177        }
    11341178        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     1179            psFree(object);
     1180            exit(EXIT_FAILURE);
     1181        }
     1182        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     1183            psFree(object);
     1184            exit(EXIT_FAILURE);
     1185        }
     1186        if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) {
    11351187            psFree(object);
    11361188            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.