IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 20, 2006, 1:58:03 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.57

File:
1 edited

Legend:

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

    r10060 r10110  
    1010    {
    1111        psMetadata      *md;
     12        expTagCounterRow *object;
     13
     14        md = psMetadataAlloc();
     15            psFree(md);
     16            exit(EXIT_FAILURE);
     17        }
     18
     19        object = expTagCounterObjectFromMetadata(md);
     20        if (!object) {
     21            psFree(md);
     22            exit(EXIT_FAILURE);
     23        }
     24
     25        psFree(md);
     26
     27            psFree(object);
     28            exit(EXIT_FAILURE);
     29        }
     30
     31        psFree(object);
     32    }
     33
     34    {
     35        psMetadata      *md;
    1236        summitExpRow    *object;
    1337
     
    391415
    392416        md = psMetadataAlloc();
     417        if (!psMetadataAddStr(md, PS_LIST_TAIL, "exp_tag", 0, NULL, "a string")) {
    393418            psFree(md);
    394419            exit(EXIT_FAILURE);
     
    426451        psFree(md);
    427452
     453        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    428454            psFree(object);
    429455            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.