IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11005 for trunk/ippdb/tests


Ignore:
Timestamp:
Jan 9, 2007, 4:00:11 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.70

Location:
trunk/ippdb/tests
Files:
5 edited

Legend:

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

    r10989 r11005  
    608608        p2PendingExpRow *object;
    609609
    610         object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string"    );
     610        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16    );
    611611
    612612        if (!object) {
     
    634634            exit(EXIT_FAILURE);
    635635        }
     636            psFree(object);
     637            exit(EXIT_FAILURE);
     638        }
    636639
    637640        psFree(object);
     
    641644        p2PendingImfileRow *object;
    642645
    643         object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32    );
     646        object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16    );
    644647
    645648        if (!object) {
     
    668671        }
    669672        if (!object->p2_version == -32) {
     673            psFree(object);
     674            exit(EXIT_FAILURE);
     675        }
    670676            psFree(object);
    671677            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r10989 r11005  
    208208        }
    209209
    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)) {
     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)) {
    226226            exit(EXIT_FAILURE);
    227227        }
  • trunk/ippdb/tests/insertobject.c

    r10989 r11005  
    300300        }
    301301
    302         object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string");
     302        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16);
    303303        if (!object) {
    304304            exit(EXIT_FAILURE);
     
    322322        }
    323323
    324         object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32);
     324        object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16);
    325325        if (!object) {
    326326            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r10989 r11005  
    714714        bool            status;
    715715
    716         object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string");
     716        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16);
    717717        if (!object) {
    718718            exit(EXIT_FAILURE);
     
    746746            exit(EXIT_FAILURE);
    747747        }
     748            psFree(md);
     749            exit(EXIT_FAILURE);
     750        }
    748751
    749752        psFree(md);
     
    755758        bool            status;
    756759
    757         object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32);
     760        object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16);
    758761        if (!object) {
    759762            exit(EXIT_FAILURE);
     
    788791        }
    789792        if (!psMetadataLookupS32(&status, md, "p2_version") == -32) {
     793            psFree(md);
     794            exit(EXIT_FAILURE);
     795        }
    790796            psFree(md);
    791797            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r10989 r11005  
    11231123            exit(EXIT_FAILURE);
    11241124        }
     1125            psFree(md);
     1126            exit(EXIT_FAILURE);
     1127        }
    11251128
    11261129        object = p2PendingExpObjectFromMetadata(md);
     
    11521155            exit(EXIT_FAILURE);
    11531156        }
     1157            psFree(object);
     1158            exit(EXIT_FAILURE);
     1159        }
    11541160
    11551161        psFree(object);
     
    11851191            exit(EXIT_FAILURE);
    11861192        }
     1193            psFree(md);
     1194            exit(EXIT_FAILURE);
     1195        }
    11871196
    11881197        object = p2PendingImfileObjectFromMetadata(md);
     
    12151224        }
    12161225        if (!object->p2_version == -32) {
     1226            psFree(object);
     1227            exit(EXIT_FAILURE);
     1228        }
    12171229            psFree(object);
    12181230            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.