IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2007, 5:14:16 PM (19 years ago)
Author:
jhoblitt
Message:

add flatcorr tables

File:
1 edited

Legend:

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

    r15569 r15576  
    28052805    }
    28062806
     2807    {
     2808        psMetadata      *md;
     2809        flatcorrRunRow  *object;
     2810        bool            status;
     2811
     2812        object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string");
     2813        if (!object) {
     2814            exit(EXIT_FAILURE);
     2815        }
     2816
     2817        md = flatcorrRunMetadataFromObject(object);
     2818        if (!md) {
     2819            exit(EXIT_FAILURE);
     2820        }
     2821
     2822        psFree(object);
     2823
     2824            psFree(md);
     2825            exit(EXIT_FAILURE);
     2826        }
     2827        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     2828            psFree(md);
     2829            exit(EXIT_FAILURE);
     2830        }
     2831        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     2832            psFree(md);
     2833            exit(EXIT_FAILURE);
     2834        }
     2835        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     2836            psFree(md);
     2837            exit(EXIT_FAILURE);
     2838        }
     2839        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     2840            psFree(md);
     2841            exit(EXIT_FAILURE);
     2842        }
     2843
     2844        psFree(md);
     2845    }
     2846
     2847    {
     2848        psMetadata      *md;
     2849        flatcorrExpRow  *object;
     2850        bool            status;
     2851
     2852        object = flatcorrExpRowAlloc(-64, -64, "a string");
     2853        if (!object) {
     2854            exit(EXIT_FAILURE);
     2855        }
     2856
     2857        md = flatcorrExpMetadataFromObject(object);
     2858        if (!md) {
     2859            exit(EXIT_FAILURE);
     2860        }
     2861
     2862        psFree(object);
     2863
     2864            psFree(md);
     2865            exit(EXIT_FAILURE);
     2866        }
     2867            psFree(md);
     2868            exit(EXIT_FAILURE);
     2869        }
     2870        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     2871            psFree(md);
     2872            exit(EXIT_FAILURE);
     2873        }
     2874
     2875        psFree(md);
     2876    }
     2877
    28072878    exit(EXIT_SUCCESS);
    28082879}
Note: See TracChangeset for help on using the changeset viewer.