IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10152 for trunk/ippdb/tests


Ignore:
Timestamp:
Nov 22, 2006, 3:42:57 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.58

Location:
trunk/ippdb/tests
Files:
5 edited

Legend:

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

    r10110 r10152  
    894894        detRunRow       *object;
    895895
    896         object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z"    );
     896        object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z"    );
    897897
    898898        if (!object) {
     
    909909        }
    910910        if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) {
     911            psFree(object);
     912            exit(EXIT_FAILURE);
     913        }
     914        if (strncmp(object->det_mode, "a string", MAX_STRING_LENGTH)) {
    911915            psFree(object);
    912916            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r10110 r10152  
    328328        }
    329329
    330         if (!detRunInsert(dbh, -32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z")) {
     330        if (!detRunInsert(dbh, -32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z")) {
    331331            exit(EXIT_FAILURE);
    332332        }
  • trunk/ippdb/tests/insertobject.c

    r10110 r10152  
    476476        }
    477477
    478         object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");
     478        object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");
    479479        if (!object) {
    480480            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r10110 r10152  
    10641064        bool            status;
    10651065
    1066         object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");
     1066        object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");
    10671067        if (!object) {
    10681068            exit(EXIT_FAILURE);
     
    10851085        }
    10861086        if (strncmp(psMetadataLookupPtr(&status, md, "det_type"), "a string", MAX_STRING_LENGTH)) {
     1087            psFree(md);
     1088            exit(EXIT_FAILURE);
     1089        }
     1090        if (strncmp(psMetadataLookupPtr(&status, md, "det_mode"), "a string", MAX_STRING_LENGTH)) {
    10871091            psFree(md);
    10881092            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r10110 r10152  
    16231623            exit(EXIT_FAILURE);
    16241624        }
     1625        if (!psMetadataAddStr(md, PS_LIST_TAIL, "det_mode", 0, NULL, "a string")) {
     1626            psFree(md);
     1627            exit(EXIT_FAILURE);
     1628        }
    16251629        if (!psMetadataAddStr(md, PS_LIST_TAIL, "state", 0, NULL, "a string")) {
    16261630            psFree(md);
     
    16821686        }
    16831687        if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) {
     1688            psFree(object);
     1689            exit(EXIT_FAILURE);
     1690        }
     1691        if (strncmp(object->det_mode, "a string", MAX_STRING_LENGTH)) {
    16841692            psFree(object);
    16851693            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.