IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2006, 11:25:59 AM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.52

File:
1 edited

Legend:

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

    r9705 r9783  
    551551        bool            status;
    552552
    553         object = p2PendingExpRowAlloc("a string", "a string", -32, -32);
     553        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string");
    554554        if (!object) {
    555555            exit(EXIT_FAILURE);
     
    579579            exit(EXIT_FAILURE);
    580580        }
     581        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     582            psFree(md);
     583            exit(EXIT_FAILURE);
     584        }
    581585
    582586        psFree(md);
     
    633637        bool            status;
    634638
    635         object = p2ProcessedExpRowAlloc("a string", -32, -32);
     639        object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string");
    636640        if (!object) {
    637641            exit(EXIT_FAILURE);
     
    654658        }
    655659        if (!psMetadataLookupS32(&status, md, "p2_version") == -32) {
     660            psFree(md);
     661            exit(EXIT_FAILURE);
     662        }
     663        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     664            psFree(md);
     665            exit(EXIT_FAILURE);
     666        }
     667
     668        psFree(md);
     669    }
     670
     671    {
     672        psMetadata      *md;
     673        p2MaskRow       *object;
     674        bool            status;
     675
     676        object = p2MaskRowAlloc("a string");
     677        if (!object) {
     678            exit(EXIT_FAILURE);
     679        }
     680
     681        md = p2MaskMetadataFromObject(object);
     682        if (!md) {
     683            exit(EXIT_FAILURE);
     684        }
     685
     686        psFree(object);
     687
     688        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
    656689            psFree(md);
    657690            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.