IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9173 for trunk/ippdb/tests


Ignore:
Timestamp:
Oct 3, 2006, 4:59:05 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.41

Location:
trunk/ippdb/tests
Files:
6 edited

Legend:

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

    r9149 r9173  
    937937        detRunRow       *object;
    938938
    939         object = detRunRowAlloc(-32, "a string"    );
     939        object = detRunRowAlloc(-32, "a string", "a string"    );
    940940
    941941        if (!object) {
     
    948948        }
    949949        if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) {
     950            psFree(object);
     951            exit(EXIT_FAILURE);
     952        }
     953        if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
    950954            psFree(object);
    951955            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r9149 r9173  
    343343        }
    344344
    345         if (!detRunInsert(dbh, -32, "a string")) {
     345        if (!detRunInsert(dbh, -32, "a string", "a string")) {
    346346            exit(EXIT_FAILURE);
    347347        }
  • trunk/ippdb/tests/insertobject.c

    r9149 r9173  
    498498        }
    499499
    500         object = detRunRowAlloc(-32, "a string");
     500        object = detRunRowAlloc(-32, "a string", "a string");
    501501        if (!object) {
    502502            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r9149 r9173  
    11151115        bool            status;
    11161116
    1117         object = detRunRowAlloc(-32, "a string");
     1117        object = detRunRowAlloc(-32, "a string", "a string");
    11181118        if (!object) {
    11191119            exit(EXIT_FAILURE);
     
    11321132        }
    11331133        if (strncmp(psMetadataLookupPtr(&status, md, "det_type"), "a string", MAX_STRING_LENGTH)) {
     1134            psFree(md);
     1135            exit(EXIT_FAILURE);
     1136        }
     1137        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
    11341138            psFree(md);
    11351139            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r9149 r9173  
    16971697            exit(EXIT_FAILURE);
    16981698        }
     1699        if (!psMetadataAddStr(md, PS_LIST_TAIL, "state", 0, NULL, "a string")) {
     1700            psFree(md);
     1701            exit(EXIT_FAILURE);
     1702        }
    16991703
    17001704        object = detRunObjectFromMetadata(md);
     
    17111715        }
    17121716        if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) {
     1717            psFree(object);
     1718            exit(EXIT_FAILURE);
     1719        }
     1720        if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
    17131721            psFree(object);
    17141722            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/pop.c

    r9149 r9173  
    499499        psS32           iteration;
    500500        char            det_type[256];
    501 
    502         dbh = psDBInit("localhost", "test", NULL, "test");
    503         if (!dbh) {
    504             exit(EXIT_FAILURE);
    505         }
    506 
    507         if (!detRunPop(dbh, &iteration, (char **)&det_type)) {
     501        char            state[256];
     502
     503        dbh = psDBInit("localhost", "test", NULL, "test");
     504        if (!dbh) {
     505            exit(EXIT_FAILURE);
     506        }
     507
     508        if (!detRunPop(dbh, &iteration, (char **)&det_type, (char **)&state)) {
    508509            exit(EXIT_FAILURE);
    509510        }
Note: See TracChangeset for help on using the changeset viewer.