IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11140 for trunk/ippdb/tests


Ignore:
Timestamp:
Jan 18, 2007, 2:23:24 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.76

Location:
trunk/ippdb/tests
Files:
5 edited

Legend:

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

    r11136 r11140  
    244244        newExpRow       *object;
    245245
    246         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string"    );
     246        object = newExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string"    );
    247247
    248248        if (!object) {
     
    263263        }
    264264        if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) {
    265             psFree(object);
    266             exit(EXIT_FAILURE);
    267         }
    268             psFree(object);
    269             exit(EXIT_FAILURE);
    270         }
    271         if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) {
    272265            psFree(object);
    273266            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r11136 r11140  
    118118        }
    119119
    120         if (!newExpInsert(dbh, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string")) {
     120        if (!newExpInsert(dbh, "a string", "a string", "a string", "a string", -32, "a string")) {
    121121            exit(EXIT_FAILURE);
    122122        }
  • trunk/ippdb/tests/insertobject.c

    r11136 r11140  
    168168        }
    169169
    170         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string");
     170        object = newExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string");
    171171        if (!object) {
    172172            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r11136 r11140  
    302302        bool            status;
    303303
    304         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string");
     304        object = newExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string");
    305305        if (!object) {
    306306            exit(EXIT_FAILURE);
     
    327327        }
    328328        if (strncmp(psMetadataLookupPtr(&status, md, "telescope"), "a string", MAX_STRING_LENGTH)) {
    329             psFree(md);
    330             exit(EXIT_FAILURE);
    331         }
    332             psFree(md);
    333             exit(EXIT_FAILURE);
    334         }
    335         if (strncmp(psMetadataLookupPtr(&status, md, "exp_type"), "a string", MAX_STRING_LENGTH)) {
    336329            psFree(md);
    337330            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r11136 r11140  
    439439            exit(EXIT_FAILURE);
    440440        }
    441             psFree(md);
    442             exit(EXIT_FAILURE);
    443         }
    444         if (!psMetadataAddStr(md, PS_LIST_TAIL, "exp_type", 0, NULL, "a string")) {
    445             psFree(md);
    446             exit(EXIT_FAILURE);
    447         }
    448441        if (!psMetadataAddS32(md, PS_LIST_TAIL, "imfiles", 0, NULL, -32)) {
    449442            psFree(md);
     
    476469        }
    477470        if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) {
    478             psFree(object);
    479             exit(EXIT_FAILURE);
    480         }
    481             psFree(object);
    482             exit(EXIT_FAILURE);
    483         }
    484         if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) {
    485471            psFree(object);
    486472            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.