IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 2, 2006, 4:55:32 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.10

File:
1 edited

Legend:

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

    r8089 r8094  
    760760        p2PendingImfileRow *object;
    761761
    762         object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -32, -32    );
     762        object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32    );
    763763
    764764        if (!object) {
     
    778778            exit(EXIT_FAILURE);
    779779        }
    780         if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    781             psFree(object);
    782             exit(EXIT_FAILURE);
    783         }
    784780        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    785781            psFree(object);
     
    870866        p2DoneImfileRow *object;
    871867
    872         object = p2DoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -32, -32    );
     868        object = p2DoneImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32    );
    873869
    874870        if (!object) {
     
    888884            exit(EXIT_FAILURE);
    889885        }
    890         if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    891             psFree(object);
    892             exit(EXIT_FAILURE);
    893         }
    894886        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    895887            psFree(object);
     
    10621054        detProcessedImfileRow *object;
    10631055
    1064         object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", "a string"    );
     1056        object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string"    );
    10651057
    10661058        if (!object) {
     
    10841076            exit(EXIT_FAILURE);
    10851077        }
    1086         if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    1087             psFree(object);
    1088             exit(EXIT_FAILURE);
    1089         }
    10901078        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    10911079            psFree(object);
     
    10991087        detStackedImfileRow *object;
    11001088
    1101         object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string"    );
     1089        object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string"    );
    11021090
    11031091        if (!object) {
     
    11211109            exit(EXIT_FAILURE);
    11221110        }
    1123         if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    1124             psFree(object);
    1125             exit(EXIT_FAILURE);
    1126         }
    11271111        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    11281112            psFree(object);
     
    11361120        detNormalizedImfileRow *object;
    11371121
    1138         object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string"    );
     1122        object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string"    );
    11391123
    11401124        if (!object) {
     
    11581142            exit(EXIT_FAILURE);
    11591143        }
    1160         if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    1161             psFree(object);
    1162             exit(EXIT_FAILURE);
    1163         }
    11641144        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    11651145            psFree(object);
     
    11981178        detMasterImfileRow *object;
    11991179
    1200         object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string", "a string"    );
     1180        object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string"    );
    12011181
    12021182        if (!object) {
     
    12161196            exit(EXIT_FAILURE);
    12171197        }
    1218         if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    1219             psFree(object);
    1220             exit(EXIT_FAILURE);
    1221         }
    12221198        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    12231199            psFree(object);
     
    12311207        detResidImfileAnalysisRow *object;
    12321208
    1233         object = detResidImfileAnalysisRowAlloc(-32, -32, "a string", "a string", "a string", "a string"    );
     1209        object = detResidImfileAnalysisRowAlloc(-32, -32, "a string", "a string", "a string"    );
    12341210
    12351211        if (!object) {
     
    12531229            exit(EXIT_FAILURE);
    12541230        }
    1255         if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    1256             psFree(object);
    1257             exit(EXIT_FAILURE);
    1258         }
    12591231        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    12601232            psFree(object);
     
    12681240        detResidExpAnalysisRow *object;
    12691241
    1270         object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", "a string", true    );
     1242        object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true    );
    12711243
    12721244        if (!object) {
     
    12831255        }
    12841256        if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
    1285             psFree(object);
    1286             exit(EXIT_FAILURE);
    1287         }
    1288         if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    12891257            psFree(object);
    12901258            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.