IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2007, 2:14:55 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.76

File:
1 edited

Legend:

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

    r11113 r11136  
    302302        bool            status;
    303303
    304         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32);
     304        object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string");
    305305        if (!object) {
    306306            exit(EXIT_FAILURE);
     
    341341            exit(EXIT_FAILURE);
    342342        }
     343        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     344            psFree(md);
     345            exit(EXIT_FAILURE);
     346        }
    343347
    344348        psFree(md);
     
    387391        bool            status;
    388392
    389         object = rawExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", -16);
     393        object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", -16);
    390394        if (!object) {
    391395            exit(EXIT_FAILURE);
     
    403407            exit(EXIT_FAILURE);
    404408        }
     409        if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     410            psFree(md);
     411            exit(EXIT_FAILURE);
     412        }
    405413        if (strncmp(psMetadataLookupPtr(&status, md, "camera"), "a string", MAX_STRING_LENGTH)) {
    406414            psFree(md);
     
    411419            exit(EXIT_FAILURE);
    412420        }
     421            psFree(md);
     422            exit(EXIT_FAILURE);
     423        }
    413424        if (strncmp(psMetadataLookupPtr(&status, md, "exp_type"), "a string", MAX_STRING_LENGTH)) {
    414425            psFree(md);
     
    419430            exit(EXIT_FAILURE);
    420431        }
     432        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     433            psFree(md);
     434            exit(EXIT_FAILURE);
     435        }
    421436        if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) {
    422437            psFree(md);
     
    474489            exit(EXIT_FAILURE);
    475490        }
    476             psFree(md);
    477             exit(EXIT_FAILURE);
    478         }
    479491
    480492        psFree(md);
     
    984996        bool            status;
    985997
    986         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");
     998        object = detRunRowAlloc(-32, -32, "a string", "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");
    987999        if (!object) {
    9881000            exit(EXIT_FAILURE);
     
    10201032            exit(EXIT_FAILURE);
    10211033        }
     1034        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     1035            psFree(md);
     1036            exit(EXIT_FAILURE);
     1037        }
    10221038        if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) {
    10231039            psFree(md);
     
    16111627        bool            status;
    16121628
    1613         object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string");
     1629        object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string");
    16141630        if (!object) {
    16151631            exit(EXIT_FAILURE);
     
    16321648        }
    16331649        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     1650            psFree(md);
     1651            exit(EXIT_FAILURE);
     1652        }
     1653        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
    16341654            psFree(md);
    16351655            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.