IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2008, 11:49:29 AM (18 years ago)
Author:
jhoblitt
Message:

update

File:
1 edited

Legend:

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

    r16587 r16616  
    31423142        bool            status;
    31433143
    3144         object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string");
     3144        object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string", "a string");
    31453145        if (!object) {
    31463146            exit(EXIT_FAILURE);
     
    31573157            exit(EXIT_FAILURE);
    31583158        }
     3159        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     3160            psFree(md);
     3161            exit(EXIT_FAILURE);
     3162        }
     3163        if (strncmp(psMetadataLookupPtr(&status, md, "lastFileset"), "a string", MAX_STRING_LENGTH)) {
     3164            psFree(md);
     3165            exit(EXIT_FAILURE);
     3166        }
     3167        if (strncmp(psMetadataLookupPtr(&status, md, "outProduct"), "a string", MAX_STRING_LENGTH)) {
     3168            psFree(md);
     3169            exit(EXIT_FAILURE);
     3170        }
    31593171        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    31603172            psFree(md);
    31613173            exit(EXIT_FAILURE);
    31623174        }
    3163         if (strncmp(psMetadataLookupPtr(&status, md, "lastFileset"), "a string", MAX_STRING_LENGTH)) {
     3175
     3176        psFree(md);
     3177    }
     3178
     3179    {
     3180        psMetadata      *md;
     3181        pstampRequestRow *object;
     3182        bool            status;
     3183
     3184        object = pstampRequestRowAlloc(-64, -64, "a string", "a string", "a string");
     3185        if (!object) {
     3186            exit(EXIT_FAILURE);
     3187        }
     3188
     3189        md = pstampRequestMetadataFromObject(object);
     3190        if (!md) {
     3191            exit(EXIT_FAILURE);
     3192        }
     3193
     3194        psFree(object);
     3195
     3196            psFree(md);
     3197            exit(EXIT_FAILURE);
     3198        }
    31643199            psFree(md);
    31653200            exit(EXIT_FAILURE);
     
    31693204            exit(EXIT_FAILURE);
    31703205        }
    3171 
    3172         psFree(md);
    3173     }
    3174 
    3175     {
    3176         psMetadata      *md;
    3177         pstampRequestRow *object;
    3178         bool            status;
    3179 
    3180         object = pstampRequestRowAlloc(-64, -64, "a string", "a string");
    3181         if (!object) {
    3182             exit(EXIT_FAILURE);
    3183         }
    3184 
    3185         md = pstampRequestMetadataFromObject(object);
    3186         if (!md) {
    3187             exit(EXIT_FAILURE);
    3188         }
    3189 
    3190         psFree(object);
    3191 
    3192             psFree(md);
    3193             exit(EXIT_FAILURE);
    3194         }
    3195             psFree(md);
    3196             exit(EXIT_FAILURE);
    3197         }
    3198         if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     3206        if (strncmp(psMetadataLookupPtr(&status, md, "outFileset"), "a string", MAX_STRING_LENGTH)) {
    31993207            psFree(md);
    32003208            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.