IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2006, 5:16:20 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.38

File:
1 edited

Legend:

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

    r9044 r9054  
    467467        bool            status;
    468468
    469         object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string", "a string");
     469        object = pzPendingImfileRowAlloc("a string", "a string", "a string", -32, "a string", "a string", "a string", "a string");
    470470        if (!object) {
    471471            exit(EXIT_FAILURE);
     
    483483            exit(EXIT_FAILURE);
    484484        }
     485        if (strncmp(psMetadataLookupPtr(&status, md, "camera"), "a string", MAX_STRING_LENGTH)) {
     486            psFree(md);
     487            exit(EXIT_FAILURE);
     488        }
     489        if (strncmp(psMetadataLookupPtr(&status, md, "telescope"), "a string", MAX_STRING_LENGTH)) {
     490            psFree(md);
     491            exit(EXIT_FAILURE);
     492        }
    485493        if (!psMetadataLookupS32(&status, md, "bytes") == -32) {
    486494            psFree(md);
     
    512520        bool            status;
    513521
    514         object = newExpRowAlloc("a string", "a string", "a string", "a string", -32);
     522        object = newExpRowAlloc("a string", "a string", "a string", "a string", "a string", -32);
    515523        if (!object) {
    516524            exit(EXIT_FAILURE);
     
    524532        psFree(object);
    525533
     534        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     535            psFree(md);
     536            exit(EXIT_FAILURE);
     537        }
    526538        if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
    527539            psFree(md);
     
    565577        psFree(object);
    566578
    567         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     579        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    568580            psFree(md);
    569581            exit(EXIT_FAILURE);
     
    602614        psFree(object);
    603615
    604         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     616        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    605617            psFree(md);
    606618            exit(EXIT_FAILURE);
     
    691703        psFree(object);
    692704
    693         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     705        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    694706            psFree(md);
    695707            exit(EXIT_FAILURE);
     
    780792        psFree(object);
    781793
    782         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     794        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    783795            psFree(md);
    784796            exit(EXIT_FAILURE);
     
    869881        psFree(object);
    870882
    871         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     883        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    872884            psFree(md);
    873885            exit(EXIT_FAILURE);
     
    902914        psFree(object);
    903915
    904         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     916        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    905917            psFree(md);
    906918            exit(EXIT_FAILURE);
     
    939951        psFree(object);
    940952
    941         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     953        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    942954            psFree(md);
    943955            exit(EXIT_FAILURE);
     
    984996        psFree(object);
    985997
    986         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     998        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    987999            psFree(md);
    9881000            exit(EXIT_FAILURE);
     
    10171029        psFree(object);
    10181030
    1019         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     1031        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    10201032            psFree(md);
    10211033            exit(EXIT_FAILURE);
     
    10821094        psFree(object);
    10831095
    1084         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     1096        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    10851097            psFree(md);
    10861098            exit(EXIT_FAILURE);
     
    11521164            exit(EXIT_FAILURE);
    11531165        }
    1154         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     1166        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    11551167            psFree(md);
    11561168            exit(EXIT_FAILURE);
     
    11851197            exit(EXIT_FAILURE);
    11861198        }
    1187         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     1199        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    11881200            psFree(md);
    11891201            exit(EXIT_FAILURE);
     
    14511463            exit(EXIT_FAILURE);
    14521464        }
    1453         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     1465        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    14541466            psFree(md);
    14551467            exit(EXIT_FAILURE);
     
    15161528            exit(EXIT_FAILURE);
    15171529        }
    1518         if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     1530        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    15191531            psFree(md);
    15201532            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.