IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11077 for trunk/ippdb/tests


Ignore:
Timestamp:
Jan 12, 2007, 12:25:20 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.74

Location:
trunk/ippdb/tests
Files:
5 edited

Legend:

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

    r11045 r11077  
    696696        p3PendingExpRow *object;
    697697
    698         object = p3PendingExpRowAlloc("a string", -32, -32, "a string", -16    );
     698        object = p3PendingExpRowAlloc("a string", -32, -32, "a string"    );
    699699
    700700        if (!object) {
     
    718718            exit(EXIT_FAILURE);
    719719        }
    720             psFree(object);
    721             exit(EXIT_FAILURE);
    722         }
    723720
    724721        psFree(object);
     
    728725        p3ProcessedExpRow *object;
    729726
    730         object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string"    );
     727        object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string", -16    );
    731728
    732729        if (!object) {
     
    795792        }
    796793        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     794            psFree(object);
     795            exit(EXIT_FAILURE);
     796        }
    797797            psFree(object);
    798798            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r11045 r11077  
    268268        }
    269269
    270         if (!p3PendingExpInsert(dbh, "a string", -32, -32, "a string", -16)) {
    271             exit(EXIT_FAILURE);
    272         }
    273 
    274         psDBCleanup(dbh);
    275     }
    276 
    277     {
    278         psDB            *dbh;
    279 
    280         dbh = psDBInit("localhost", "test", NULL, "test");
    281         if (!dbh) {
    282             exit(EXIT_FAILURE);
    283         }
    284 
    285         if (!p3ProcessedExpInsert(dbh, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string")) {
     270        if (!p3PendingExpInsert(dbh, "a string", -32, -32, "a string")) {
     271            exit(EXIT_FAILURE);
     272        }
     273
     274        psDBCleanup(dbh);
     275    }
     276
     277    {
     278        psDB            *dbh;
     279
     280        dbh = psDBInit("localhost", "test", NULL, "test");
     281        if (!dbh) {
     282            exit(EXIT_FAILURE);
     283        }
     284
     285        if (!p3ProcessedExpInsert(dbh, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string", -16)) {
    286286            exit(EXIT_FAILURE);
    287287        }
  • trunk/ippdb/tests/insertobject.c

    r11045 r11077  
    388388        }
    389389
    390         object = p3PendingExpRowAlloc("a string", -32, -32, "a string", -16);
     390        object = p3PendingExpRowAlloc("a string", -32, -32, "a string");
    391391        if (!object) {
    392392            exit(EXIT_FAILURE);
     
    410410        }
    411411
    412         object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string");
     412        object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string", -16);
    413413        if (!object) {
    414414            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r11045 r11077  
    834834        bool            status;
    835835
    836         object = p3PendingExpRowAlloc("a string", -32, -32, "a string", -16);
     836        object = p3PendingExpRowAlloc("a string", -32, -32, "a string");
    837837        if (!object) {
    838838            exit(EXIT_FAILURE);
     
    862862            exit(EXIT_FAILURE);
    863863        }
    864             psFree(md);
    865             exit(EXIT_FAILURE);
    866         }
    867864
    868865        psFree(md);
     
    874871        bool            status;
    875872
    876         object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string");
     873        object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string", -16);
    877874        if (!object) {
    878875            exit(EXIT_FAILURE);
     
    947944        }
    948945        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     946            psFree(md);
     947            exit(EXIT_FAILURE);
     948        }
    949949            psFree(md);
    950950            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r11045 r11077  
    12631263            exit(EXIT_FAILURE);
    12641264        }
    1265             psFree(md);
    1266             exit(EXIT_FAILURE);
    1267         }
    12681265
    12691266        object = p3PendingExpObjectFromMetadata(md);
     
    12911288            exit(EXIT_FAILURE);
    12921289        }
    1293             psFree(object);
    1294             exit(EXIT_FAILURE);
    1295         }
    12961290
    12971291        psFree(object);
     
    13671361            exit(EXIT_FAILURE);
    13681362        }
     1363            psFree(md);
     1364            exit(EXIT_FAILURE);
     1365        }
    13691366
    13701367        object = p3ProcessedExpObjectFromMetadata(md);
     
    14371434        }
    14381435        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     1436            psFree(object);
     1437            exit(EXIT_FAILURE);
     1438        }
    14391439            psFree(object);
    14401440            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.