IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11030 for trunk/ippdb/tests


Ignore:
Timestamp:
Jan 11, 2007, 11:59:35 AM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.72

Location:
trunk/ippdb/tests
Files:
5 edited

Legend:

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

    r11027 r11030  
    608608        p2PendingExpRow *object;
    609609
    610         object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16    );
     610        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string"    );
    611611
    612612        if (!object) {
     
    634634            exit(EXIT_FAILURE);
    635635        }
    636             psFree(object);
    637             exit(EXIT_FAILURE);
    638         }
    639636
    640637        psFree(object);
     
    644641        p2PendingImfileRow *object;
    645642
    646         object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16    );
     643        object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32    );
    647644
    648645        if (!object) {
     
    674671            exit(EXIT_FAILURE);
    675672        }
    676             psFree(object);
    677             exit(EXIT_FAILURE);
    678         }
    679673
    680674        psFree(object);
     
    730724        p2ProcessedImfileRow *object;
    731725
    732         object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32    );
     726        object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32, -16    );
    733727
    734728        if (!object) {
     
    777771        }
    778772        if (!object->p2_version == -32) {
     773            psFree(object);
     774            exit(EXIT_FAILURE);
     775        }
    779776            psFree(object);
    780777            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r11027 r11030  
    208208        }
    209209
    210         if (!p2PendingExpInsert(dbh, "a string", "a string", -32, -32, "a string", -16)) {
    211             exit(EXIT_FAILURE);
    212         }
    213 
    214         psDBCleanup(dbh);
    215     }
    216 
    217     {
    218         psDB            *dbh;
    219 
    220         dbh = psDBInit("localhost", "test", NULL, "test");
    221         if (!dbh) {
    222             exit(EXIT_FAILURE);
    223         }
    224 
    225         if (!p2PendingImfileInsert(dbh, "a string", "a string", "a string", "a string", -32, -32, -16)) {
     210        if (!p2PendingExpInsert(dbh, "a string", "a string", -32, -32, "a string")) {
     211            exit(EXIT_FAILURE);
     212        }
     213
     214        psDBCleanup(dbh);
     215    }
     216
     217    {
     218        psDB            *dbh;
     219
     220        dbh = psDBInit("localhost", "test", NULL, "test");
     221        if (!dbh) {
     222            exit(EXIT_FAILURE);
     223        }
     224
     225        if (!p2PendingImfileInsert(dbh, "a string", "a string", "a string", "a string", -32, -32)) {
    226226            exit(EXIT_FAILURE);
    227227        }
     
    268268        }
    269269
    270         if (!p2ProcessedImfileInsert(dbh, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32)) {
     270        if (!p2ProcessedImfileInsert(dbh, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32, -16)) {
    271271            exit(EXIT_FAILURE);
    272272        }
  • trunk/ippdb/tests/insertobject.c

    r11027 r11030  
    300300        }
    301301
    302         object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16);
     302        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string");
    303303        if (!object) {
    304304            exit(EXIT_FAILURE);
     
    322322        }
    323323
    324         object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16);
     324        object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32);
    325325        if (!object) {
    326326            exit(EXIT_FAILURE);
     
    388388        }
    389389
    390         object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32);
     390        object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32, -16);
    391391        if (!object) {
    392392            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r11027 r11030  
    714714        bool            status;
    715715
    716         object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16);
     716        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string");
    717717        if (!object) {
    718718            exit(EXIT_FAILURE);
     
    746746            exit(EXIT_FAILURE);
    747747        }
    748             psFree(md);
    749             exit(EXIT_FAILURE);
    750         }
    751748
    752749        psFree(md);
     
    758755        bool            status;
    759756
    760         object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16);
     757        object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32);
    761758        if (!object) {
    762759            exit(EXIT_FAILURE);
     
    794791            exit(EXIT_FAILURE);
    795792        }
    796             psFree(md);
    797             exit(EXIT_FAILURE);
    798         }
    799793
    800794        psFree(md);
     
    868862        bool            status;
    869863
    870         object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32);
     864        object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32, -16);
    871865        if (!object) {
    872866            exit(EXIT_FAILURE);
     
    921915        }
    922916        if (!psMetadataLookupS32(&status, md, "p2_version") == -32) {
     917            psFree(md);
     918            exit(EXIT_FAILURE);
     919        }
    923920            psFree(md);
    924921            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r11027 r11030  
    11231123            exit(EXIT_FAILURE);
    11241124        }
    1125             psFree(md);
    1126             exit(EXIT_FAILURE);
    1127         }
    11281125
    11291126        object = p2PendingExpObjectFromMetadata(md);
     
    11551152            exit(EXIT_FAILURE);
    11561153        }
    1157             psFree(object);
    1158             exit(EXIT_FAILURE);
    1159         }
    11601154
    11611155        psFree(object);
     
    11911185            exit(EXIT_FAILURE);
    11921186        }
    1193             psFree(md);
    1194             exit(EXIT_FAILURE);
    1195         }
    11961187
    11971188        object = p2PendingImfileObjectFromMetadata(md);
     
    12271218            exit(EXIT_FAILURE);
    12281219        }
    1229             psFree(object);
    1230             exit(EXIT_FAILURE);
    1231         }
    12321220
    12331221        psFree(object);
     
    13591347            exit(EXIT_FAILURE);
    13601348        }
     1349            psFree(md);
     1350            exit(EXIT_FAILURE);
     1351        }
    13611352
    13621353        object = p2ProcessedImfileObjectFromMetadata(md);
     
    14091400        }
    14101401        if (!object->p2_version == -32) {
     1402            psFree(object);
     1403            exit(EXIT_FAILURE);
     1404        }
    14111405            psFree(object);
    14121406            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.