IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10989 for trunk/ippdb/tests


Ignore:
Timestamp:
Jan 8, 2007, 4:08:31 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION to 0.0.69

Location:
trunk/ippdb/tests
Files:
5 edited

Legend:

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

    r10753 r10989  
    244244        newExpRow       *object;
    245245
    246         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32    );
     246        object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16    );
    247247
    248248        if (!object) {
     
    277277            exit(EXIT_FAILURE);
    278278        }
     279            psFree(object);
     280            exit(EXIT_FAILURE);
     281        }
    279282
    280283        psFree(object);
     
    284287        newImfileRow    *object;
    285288
    286         object = newImfileRowAlloc("a string", "a string", "a string", "a string"    );
     289        object = newImfileRowAlloc("a string", "a string", "a string", "a string", -16    );
    287290
    288291        if (!object) {
     
    303306        }
    304307        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     308            psFree(object);
     309            exit(EXIT_FAILURE);
     310        }
    305311            psFree(object);
    306312            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r10753 r10989  
    118118        }
    119119
    120         if (!newExpInsert(dbh, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32)) {
    121             exit(EXIT_FAILURE);
    122         }
    123 
    124         psDBCleanup(dbh);
    125     }
    126 
    127     {
    128         psDB            *dbh;
    129 
    130         dbh = psDBInit("localhost", "test", NULL, "test");
    131         if (!dbh) {
    132             exit(EXIT_FAILURE);
    133         }
    134 
    135         if (!newImfileInsert(dbh, "a string", "a string", "a string", "a string")) {
     120        if (!newExpInsert(dbh, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16)) {
     121            exit(EXIT_FAILURE);
     122        }
     123
     124        psDBCleanup(dbh);
     125    }
     126
     127    {
     128        psDB            *dbh;
     129
     130        dbh = psDBInit("localhost", "test", NULL, "test");
     131        if (!dbh) {
     132            exit(EXIT_FAILURE);
     133        }
     134
     135        if (!newImfileInsert(dbh, "a string", "a string", "a string", "a string", -16)) {
    136136            exit(EXIT_FAILURE);
    137137        }
  • trunk/ippdb/tests/insertobject.c

    r10753 r10989  
    168168        }
    169169
    170         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32);
     170        object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16);
    171171        if (!object) {
    172172            exit(EXIT_FAILURE);
     
    190190        }
    191191
    192         object = newImfileRowAlloc("a string", "a string", "a string", "a string");
     192        object = newImfileRowAlloc("a string", "a string", "a string", "a string", -16);
    193193        if (!object) {
    194194            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r10753 r10989  
    302302        bool            status;
    303303
    304         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32);
     304        object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16);
    305305        if (!object) {
    306306            exit(EXIT_FAILURE);
     
    341341            exit(EXIT_FAILURE);
    342342        }
     343            psFree(md);
     344            exit(EXIT_FAILURE);
     345        }
    343346
    344347        psFree(md);
     
    350353        bool            status;
    351354
    352         object = newImfileRowAlloc("a string", "a string", "a string", "a string");
     355        object = newImfileRowAlloc("a string", "a string", "a string", "a string", -16);
    353356        if (!object) {
    354357            exit(EXIT_FAILURE);
     
    375378        }
    376379        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     380            psFree(md);
     381            exit(EXIT_FAILURE);
     382        }
    377383            psFree(md);
    378384            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r10753 r10989  
    450450            exit(EXIT_FAILURE);
    451451        }
     452            psFree(md);
     453            exit(EXIT_FAILURE);
     454        }
    452455
    453456        object = newExpObjectFromMetadata(md);
     
    486489            exit(EXIT_FAILURE);
    487490        }
     491            psFree(object);
     492            exit(EXIT_FAILURE);
     493        }
    488494
    489495        psFree(object);
     
    511517            exit(EXIT_FAILURE);
    512518        }
     519            psFree(md);
     520            exit(EXIT_FAILURE);
     521        }
    513522
    514523        object = newImfileObjectFromMetadata(md);
     
    533542        }
    534543        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     544            psFree(object);
     545            exit(EXIT_FAILURE);
     546        }
    535547            psFree(object);
    536548            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.