IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2007, 1:56:44 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.13

File:
1 edited

Legend:

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

    r12033 r12061  
    664664        chipProcessedImfileRow *object;
    665665
    666         object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16    );
     666        object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16    );
    667667
    668668        if (!object) {
     
    706706            exit(EXIT_FAILURE);
    707707        }
    708         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    709             psFree(object);
    710             exit(EXIT_FAILURE);
    711         }
    712         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     708        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
    713709            psFree(object);
    714710            exit(EXIT_FAILURE);
     
    762758        camProcessedExpRow *object;
    763759
    764         object = camProcessedExpRowAlloc("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"    );
     760        object = camProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", 32.32, 32.32, -16, "a string", "a string"    );
    765761
    766762        if (!object) {
     
    816812            exit(EXIT_FAILURE);
    817813        }
    818         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    819             psFree(object);
    820             exit(EXIT_FAILURE);
    821         }
    822         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     814        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
    823815            psFree(object);
    824816            exit(EXIT_FAILURE);
     
    10131005        detProcessedImfileRow *object;
    10141006
    1015         object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16    );
     1007        object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16    );
    10161008
    10171009        if (!object) {
     
    10511043            exit(EXIT_FAILURE);
    10521044        }
    1053         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    1054             psFree(object);
    1055             exit(EXIT_FAILURE);
    1056         }
    1057         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     1045        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
    10581046            psFree(object);
    10591047            exit(EXIT_FAILURE);
     
    10701058        detProcessedExpRow *object;
    10711059
    1072         object = detProcessedExpRowAlloc(-32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16    );
     1060        object = detProcessedExpRowAlloc(-32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16    );
    10731061
    10741062        if (!object) {
     
    11001088            exit(EXIT_FAILURE);
    11011089        }
    1102         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    1103             psFree(object);
    1104             exit(EXIT_FAILURE);
    1105         }
    1106         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     1090        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
    11071091            psFree(object);
    11081092            exit(EXIT_FAILURE);
     
    12011185        detNormalizedImfileRow *object;
    12021186
    1203         object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16    );
     1187        object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16    );
    12041188
    12051189        if (!object) {
     
    12351219            exit(EXIT_FAILURE);
    12361220        }
    1237         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    1238             psFree(object);
    1239             exit(EXIT_FAILURE);
    1240         }
    1241         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     1221        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
    12421222            psFree(object);
    12431223            exit(EXIT_FAILURE);
     
    12541234        detNormalizedExpRow *object;
    12551235
    1256         object = detNormalizedExpRowAlloc(-32, -32, "a string", 64.64, 64.64, 64.64, "a string", "a string", -16    );
     1236        object = detNormalizedExpRowAlloc(-32, -32, "a string", 64.64, 64.64, 64.64, "a string", -16    );
    12571237
    12581238        if (!object) {
     
    12841264            exit(EXIT_FAILURE);
    12851265        }
    1286         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    1287             psFree(object);
    1288             exit(EXIT_FAILURE);
    1289         }
    1290         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     1266        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
    12911267            psFree(object);
    12921268            exit(EXIT_FAILURE);
     
    13031279        detResidImfileRow *object;
    13041280
    1305         object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16    );
     1281        object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16    );
    13061282
    13071283        if (!object) {
     
    13451321            exit(EXIT_FAILURE);
    13461322        }
    1347         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    1348             psFree(object);
    1349             exit(EXIT_FAILURE);
    1350         }
    1351         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     1323        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
    13521324            psFree(object);
    13531325            exit(EXIT_FAILURE);
     
    13641336        detResidExpRow  *object;
    13651337
    1366         object = detResidExpRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", true, -16    );
     1338        object = detResidExpRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", true, -16    );
    13671339
    13681340        if (!object) {
     
    13981370            exit(EXIT_FAILURE);
    13991371        }
    1400         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    1401             psFree(object);
    1402             exit(EXIT_FAILURE);
    1403         }
    1404         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     1372        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
    14051373            psFree(object);
    14061374            exit(EXIT_FAILURE);
     
    15271495        warpSkyCellMapRow *object;
    15281496
    1529         object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string"    );
     1497        object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string", -16    );
    15301498
    15311499        if (!object) {
     
    15541522        }
    15551523        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     1524            psFree(object);
     1525            exit(EXIT_FAILURE);
     1526        }
     1527        if (!object->fault == -16) {
    15561528            psFree(object);
    15571529            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.