IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2006, 4:12:32 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jhoblitt/ippdb/tests/metadatafromobject.c

    r8020 r8026  
    467467        bool            status;
    468468
    469         object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string");
     469        object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string", "a string");
    470470        if (!object) {
    471471            exit(EXIT_FAILURE);
     
    491491            exit(EXIT_FAILURE);
    492492        }
     493        if (strncmp(psMetadataLookupPtr(&status, md, "class"), "a string", MAX_STRING_LENGTH)) {
     494            psFree(md);
     495            exit(EXIT_FAILURE);
     496        }
    493497        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    494498            psFree(md);
     
    549553        bool            status;
    550554
    551         object = newImfileRowAlloc("a string", "a string", "a string");
     555        object = newImfileRowAlloc("a string", "a string", "a string", "a string");
    552556        if (!object) {
    553557            exit(EXIT_FAILURE);
     
    565569            exit(EXIT_FAILURE);
    566570        }
     571        if (strncmp(psMetadataLookupPtr(&status, md, "class"), "a string", MAX_STRING_LENGTH)) {
     572            psFree(md);
     573            exit(EXIT_FAILURE);
     574        }
    567575        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    568576            psFree(md);
     
    680688        bool            status;
    681689
    682         object = rawImfileRowAlloc("a string", "a string", "a string", "a string");
     690        object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string");
    683691        if (!object) {
    684692            exit(EXIT_FAILURE);
     
    693701
    694702        if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) {
     703            psFree(md);
     704            exit(EXIT_FAILURE);
     705        }
     706        if (strncmp(psMetadataLookupPtr(&status, md, "class"), "a string", MAX_STRING_LENGTH)) {
    695707            psFree(md);
    696708            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.