IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2006, 3:44:47 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jhoblitt/ippdb/tests/alloc.c

    r8006 r8020  
    384384        pzPendingImfileRow *object;
    385385
    386         object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string", "a string"    );
     386        object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string"    );
    387387
    388388        if (!object) {
     
    402402            exit(EXIT_FAILURE);
    403403        }
    404         if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) {
    405             psFree(object);
    406             exit(EXIT_FAILURE);
    407         }
    408404        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    409405            psFree(object);
     
    454450        newImfileRow    *object;
    455451
    456         object = newImfileRowAlloc("a string", "a string", "a string", "a string"    );
    457 
    458         if (!object) {
    459             exit(EXIT_FAILURE);
    460         }
    461 
    462         if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
    463             psFree(object);
    464             exit(EXIT_FAILURE);
    465         }
    466         if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) {
     452        object = newImfileRowAlloc("a string", "a string", "a string"    );
     453
     454        if (!object) {
     455            exit(EXIT_FAILURE);
     456        }
     457
     458        if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
    467459            psFree(object);
    468460            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.