IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9213 for trunk/ippdb/tests


Ignore:
Timestamp:
Oct 4, 2006, 11:22:25 AM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.44

Location:
trunk/ippdb/tests
Files:
6 edited

Legend:

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

    r9187 r9213  
    11751175        detNormalizedImfileRow *object;
    11761176
    1177         object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string"    );
     1177        object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string"    );
    11781178
    11791179        if (!object) {
     
    11941194        }
    11951195        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     1196            psFree(object);
     1197            exit(EXIT_FAILURE);
     1198        }
     1199        if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
     1200            psFree(object);
     1201            exit(EXIT_FAILURE);
     1202        }
     1203        if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
    11961204            psFree(object);
    11971205            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r9187 r9213  
    433433        }
    434434
    435         if (!detNormalizedImfileInsert(dbh, -32, -32, "a string", "a string")) {
     435        if (!detNormalizedImfileInsert(dbh, -32, -32, "a string", "a string", "a string", "a string")) {
    436436            exit(EXIT_FAILURE);
    437437        }
  • trunk/ippdb/tests/insertobject.c

    r9187 r9213  
    630630        }
    631631
    632         object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string");
     632        object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string");
    633633        if (!object) {
    634634            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r9187 r9213  
    14011401        bool            status;
    14021402
    1403         object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string");
     1403        object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string");
    14041404        if (!object) {
    14051405            exit(EXIT_FAILURE);
     
    14261426        }
    14271427        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     1428            psFree(md);
     1429            exit(EXIT_FAILURE);
     1430        }
     1431        if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) {
     1432            psFree(md);
     1433            exit(EXIT_FAILURE);
     1434        }
     1435        if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) {
    14281436            psFree(md);
    14291437            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r9187 r9213  
    21332133            exit(EXIT_FAILURE);
    21342134        }
     2135        if (!psMetadataAddStr(md, PS_LIST_TAIL, "b1_uri", 0, NULL, "a string")) {
     2136            psFree(md);
     2137            exit(EXIT_FAILURE);
     2138        }
     2139        if (!psMetadataAddStr(md, PS_LIST_TAIL, "b2_uri", 0, NULL, "a string")) {
     2140            psFree(md);
     2141            exit(EXIT_FAILURE);
     2142        }
    21352143
    21362144        object = detNormalizedImfileObjectFromMetadata(md);
     
    21552163        }
    21562164        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     2165            psFree(object);
     2166            exit(EXIT_FAILURE);
     2167        }
     2168        if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
     2169            psFree(object);
     2170            exit(EXIT_FAILURE);
     2171        }
     2172        if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
    21572173            psFree(object);
    21582174            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/pop.c

    r9187 r9213  
    631631        char            class_id[256];
    632632        char            uri[256];
    633 
    634         dbh = psDBInit("localhost", "test", NULL, "test");
    635         if (!dbh) {
    636             exit(EXIT_FAILURE);
    637         }
    638 
    639         if (!detNormalizedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri)) {
     633        char            b1_uri[256];
     634        char            b2_uri[256];
     635
     636        dbh = psDBInit("localhost", "test", NULL, "test");
     637        if (!dbh) {
     638            exit(EXIT_FAILURE);
     639        }
     640
     641        if (!detNormalizedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&b1_uri, (char **)&b2_uri)) {
    640642            exit(EXIT_FAILURE);
    641643        }
Note: See TracChangeset for help on using the changeset viewer.