IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2007, 6:14:42 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.9

File:
1 edited

Legend:

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

    r11867 r11873  
    627627        bool            status;
    628628
    629         object = p2PendingExpRowAlloc("a string", -32, -32, "a string", "a string");
     629        object = p2PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", "a string");
    630630        if (!object) {
    631631            exit(EXIT_FAILURE);
     
    659659            exit(EXIT_FAILURE);
    660660        }
     661        if (strncmp(psMetadataLookupPtr(&status, md, "expgroup"), "a string", MAX_STRING_LENGTH)) {
     662            psFree(md);
     663            exit(EXIT_FAILURE);
     664        }
     665        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     666            psFree(md);
     667            exit(EXIT_FAILURE);
     668        }
    661669
    662670        psFree(md);
     
    713721        bool            status;
    714722
    715         object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string");
     723        object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string");
    716724        if (!object) {
    717725            exit(EXIT_FAILURE);
     
    741749            exit(EXIT_FAILURE);
    742750        }
     751        if (strncmp(psMetadataLookupPtr(&status, md, "expgroup"), "a string", MAX_STRING_LENGTH)) {
     752            psFree(md);
     753            exit(EXIT_FAILURE);
     754        }
     755        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     756            psFree(md);
     757            exit(EXIT_FAILURE);
     758        }
    743759
    744760        psFree(md);
     
    843859        bool            status;
    844860
    845         object = p3PendingExpRowAlloc("a string", -32, -32, "a string");
     861        object = p3PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string");
    846862        if (!object) {
    847863            exit(EXIT_FAILURE);
     
    871887            exit(EXIT_FAILURE);
    872888        }
     889        if (strncmp(psMetadataLookupPtr(&status, md, "expgroup"), "a string", MAX_STRING_LENGTH)) {
     890            psFree(md);
     891            exit(EXIT_FAILURE);
     892        }
     893        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     894            psFree(md);
     895            exit(EXIT_FAILURE);
     896        }
    873897
    874898        psFree(md);
     
    880904        bool            status;
    881905
    882         object = p3ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -16);
     906        object = p3ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -16, "a string", "a string");
    883907        if (!object) {
    884908            exit(EXIT_FAILURE);
     
    959983            exit(EXIT_FAILURE);
    960984        }
     985        if (strncmp(psMetadataLookupPtr(&status, md, "expgroup"), "a string", MAX_STRING_LENGTH)) {
     986            psFree(md);
     987            exit(EXIT_FAILURE);
     988        }
     989        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     990            psFree(md);
     991            exit(EXIT_FAILURE);
     992        }
    961993
    962994        psFree(md);
     
    16661698        bool            status;
    16671699
    1668         object = p4RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z");
     1700        object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");
    16691701        if (!object) {
    16701702            exit(EXIT_FAILURE);
     
    16941726            exit(EXIT_FAILURE);
    16951727        }
     1728        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     1729            psFree(md);
     1730            exit(EXIT_FAILURE);
     1731        }
    16961732            psFree(md);
    16971733            exit(EXIT_FAILURE);
     
    18411877        bool            status;
    18421878
    1843         object = p5RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z");
     1879        object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z");
    18441880        if (!object) {
    18451881            exit(EXIT_FAILURE);
     
    18651901            exit(EXIT_FAILURE);
    18661902        }
     1903        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
     1904            psFree(md);
     1905            exit(EXIT_FAILURE);
     1906        }
    18671907            psFree(md);
    18681908            exit(EXIT_FAILURE);
     
    19672007        bool            status;
    19682008
    1969         object = p6RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z");
     2009        object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z");
    19702010        if (!object) {
    19712011            exit(EXIT_FAILURE);
     
    19882028        }
    19892029        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     2030            psFree(md);
     2031            exit(EXIT_FAILURE);
     2032        }
     2033        if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) {
    19902034            psFree(md);
    19912035            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.