IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9044 for trunk/ippdb/tests


Ignore:
Timestamp:
Sep 28, 2006, 4:31:14 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.37

Location:
trunk/ippdb/tests
Files:
6 edited

Legend:

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

    r8665 r9044  
    974974        detProcessedImfileRow *object;
    975975
    976         object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64    );
     976        object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string"    );
    977977
    978978        if (!object) {
     
    10091009        }
    10101010        if (!object->bg_mean_stdev == 64.64) {
     1011            psFree(object);
     1012            exit(EXIT_FAILURE);
     1013        }
     1014        if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
     1015            psFree(object);
     1016            exit(EXIT_FAILURE);
     1017        }
     1018        if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
    10111019            psFree(object);
    10121020            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r8665 r9044  
    373373        }
    374374
    375         if (!detProcessedImfileInsert(dbh, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64)) {
     375        if (!detProcessedImfileInsert(dbh, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string")) {
    376376            exit(EXIT_FAILURE);
    377377        }
  • trunk/ippdb/tests/insertobject.c

    r8665 r9044  
    542542        }
    543543
    544         object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64);
     544        object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string");
    545545        if (!object) {
    546546            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r8665 r9044  
    11691169        bool            status;
    11701170
    1171         object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64);
     1171        object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string");
    11721172        if (!object) {
    11731173            exit(EXIT_FAILURE);
     
    12101210        }
    12111211        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1212            psFree(md);
     1213            exit(EXIT_FAILURE);
     1214        }
     1215        if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) {
     1216            psFree(md);
     1217            exit(EXIT_FAILURE);
     1218        }
     1219        if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) {
    12121220            psFree(md);
    12131221            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r8665 r9044  
    17811781            exit(EXIT_FAILURE);
    17821782        }
     1783        if (!psMetadataAddStr(md, PS_LIST_TAIL, "b1_uri", 0, NULL, "a string")) {
     1784            psFree(md);
     1785            exit(EXIT_FAILURE);
     1786        }
     1787        if (!psMetadataAddStr(md, PS_LIST_TAIL, "b2_uri", 0, NULL, "a string")) {
     1788            psFree(md);
     1789            exit(EXIT_FAILURE);
     1790        }
    17831791
    17841792        object = detProcessedImfileObjectFromMetadata(md);
     
    18191827        }
    18201828        if (!object->bg_mean_stdev == 64.64) {
     1829            psFree(object);
     1830            exit(EXIT_FAILURE);
     1831        }
     1832        if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
     1833            psFree(object);
     1834            exit(EXIT_FAILURE);
     1835        }
     1836        if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
    18211837            psFree(object);
    18221838            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/pop.c

    r8665 r9044  
    538538        psF64           bg_stdev;
    539539        psF64           bg_mean_stdev;
    540 
    541         dbh = psDBInit("localhost", "test", NULL, "test");
    542         if (!dbh) {
    543             exit(EXIT_FAILURE);
    544         }
    545 
    546         if (!detProcessedImfilePop(dbh, &det_id, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev)) {
     540        char            b1_uri[256];
     541        char            b2_uri[256];
     542
     543        dbh = psDBInit("localhost", "test", NULL, "test");
     544        if (!dbh) {
     545            exit(EXIT_FAILURE);
     546        }
     547
     548        if (!detProcessedImfilePop(dbh, &det_id, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) {
    547549            exit(EXIT_FAILURE);
    548550        }
Note: See TracChangeset for help on using the changeset viewer.