IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2007, 3:46:45 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.1

File:
1 edited

Legend:

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

    r11193 r11679  
    16431643    {
    16441644        psMetadata      *md;
    1645         p4RunRow        *object;
    1646         bool            status;
    1647 
    1648         object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string");
    1649         if (!object) {
    1650             exit(EXIT_FAILURE);
    1651         }
    1652 
    1653         md = p4RunMetadataFromObject(object);
    1654         if (!md) {
    1655             exit(EXIT_FAILURE);
    1656         }
    1657 
    1658         psFree(object);
    1659 
    1660         if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    1661             psFree(md);
    1662             exit(EXIT_FAILURE);
    1663         }
    1664         if (strncmp(psMetadataLookupPtr(&status, md, "survey_mode"), "a string", MAX_STRING_LENGTH)) {
     1645        p4aRunRow       *object;
     1646        bool            status;
     1647
     1648        object = p4aRunRowAlloc(-32, "a string", "a string", true);
     1649        if (!object) {
     1650            exit(EXIT_FAILURE);
     1651        }
     1652
     1653        md = p4aRunMetadataFromObject(object);
     1654        if (!md) {
     1655            exit(EXIT_FAILURE);
     1656        }
     1657
     1658        psFree(object);
     1659
     1660        if (!psMetadataLookupS32(&status, md, "p4a_id") == -32) {
    16651661            psFree(md);
    16661662            exit(EXIT_FAILURE);
     
    16741670            exit(EXIT_FAILURE);
    16751671        }
    1676         if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) {
     1672        if (!psMetadataLookupBool(&status, md, "magic") == true) {
     1673            psFree(md);
     1674            exit(EXIT_FAILURE);
     1675        }
     1676
     1677        psFree(md);
     1678    }
     1679
     1680    {
     1681        psMetadata      *md;
     1682        p4aInputExpRow  *object;
     1683        bool            status;
     1684
     1685        object = p4aInputExpRowAlloc(-32, "a string", -32);
     1686        if (!object) {
     1687            exit(EXIT_FAILURE);
     1688        }
     1689
     1690        md = p4aInputExpMetadataFromObject(object);
     1691        if (!md) {
     1692            exit(EXIT_FAILURE);
     1693        }
     1694
     1695        psFree(object);
     1696
     1697        if (!psMetadataLookupS32(&status, md, "p4a_id") == -32) {
     1698            psFree(md);
     1699            exit(EXIT_FAILURE);
     1700        }
     1701        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1702            psFree(md);
     1703            exit(EXIT_FAILURE);
     1704        }
     1705        if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
     1706            psFree(md);
     1707            exit(EXIT_FAILURE);
     1708        }
     1709
     1710        psFree(md);
     1711    }
     1712
     1713    {
     1714        psMetadata      *md;
     1715        p4aScfileRow    *object;
     1716        bool            status;
     1717
     1718        object = p4aScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64);
     1719        if (!object) {
     1720            exit(EXIT_FAILURE);
     1721        }
     1722
     1723        md = p4aScfileMetadataFromObject(object);
     1724        if (!md) {
     1725            exit(EXIT_FAILURE);
     1726        }
     1727
     1728        psFree(object);
     1729
     1730        if (!psMetadataLookupS32(&status, md, "p4a_id") == -32) {
    16771731            psFree(md);
    16781732            exit(EXIT_FAILURE);
     
    16861740            exit(EXIT_FAILURE);
    16871741        }
    1688         if (!psMetadataLookupF64(&status, md, "ra") == 64.64) {
    1689             psFree(md);
    1690             exit(EXIT_FAILURE);
    1691         }
    1692         if (!psMetadataLookupF64(&status, md, "decl") == 64.64) {
    1693             psFree(md);
    1694             exit(EXIT_FAILURE);
    1695         }
    1696         if (strncmp(psMetadataLookupPtr(&status, md, "input_ss"), "a string", MAX_STRING_LENGTH)) {
    1697             psFree(md);
    1698             exit(EXIT_FAILURE);
    1699         }
    1700         if (strncmp(psMetadataLookupPtr(&status, md, "output_ss"), "a string", MAX_STRING_LENGTH)) {
    1701             psFree(md);
    1702             exit(EXIT_FAILURE);
    1703         }
    1704 
    1705         psFree(md);
    1706     }
    1707 
    1708     {
    1709         psMetadata      *md;
    1710         p4InputImfileRow *object;
    1711         bool            status;
    1712 
    1713         object = p4InputImfileRowAlloc(-32, "a string", -32, "a string");
    1714         if (!object) {
    1715             exit(EXIT_FAILURE);
    1716         }
    1717 
    1718         md = p4InputImfileMetadataFromObject(object);
    1719         if (!md) {
    1720             exit(EXIT_FAILURE);
    1721         }
    1722 
    1723         psFree(object);
    1724 
    1725         if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    1726             psFree(md);
    1727             exit(EXIT_FAILURE);
    1728         }
    17291742        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    17301743            psFree(md);
     
    17351748            exit(EXIT_FAILURE);
    17361749        }
     1750        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     1751            psFree(md);
     1752            exit(EXIT_FAILURE);
     1753        }
     1754        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1755            psFree(md);
     1756            exit(EXIT_FAILURE);
     1757        }
     1758        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1759            psFree(md);
     1760            exit(EXIT_FAILURE);
     1761        }
     1762
     1763        psFree(md);
     1764    }
     1765
     1766    {
     1767        psMetadata      *md;
     1768        p4bRunRow       *object;
     1769        bool            status;
     1770
     1771        object = p4bRunRowAlloc(-32, "a string", "a string", true);
     1772        if (!object) {
     1773            exit(EXIT_FAILURE);
     1774        }
     1775
     1776        md = p4bRunMetadataFromObject(object);
     1777        if (!md) {
     1778            exit(EXIT_FAILURE);
     1779        }
     1780
     1781        psFree(object);
     1782
     1783        if (!psMetadataLookupS32(&status, md, "p4b_id") == -32) {
     1784            psFree(md);
     1785            exit(EXIT_FAILURE);
     1786        }
     1787        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     1788            psFree(md);
     1789            exit(EXIT_FAILURE);
     1790        }
     1791        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     1792            psFree(md);
     1793            exit(EXIT_FAILURE);
     1794        }
     1795        if (!psMetadataLookupBool(&status, md, "magic") == true) {
     1796            psFree(md);
     1797            exit(EXIT_FAILURE);
     1798        }
     1799
     1800        psFree(md);
     1801    }
     1802
     1803    {
     1804        psMetadata      *md;
     1805        p4bInputScfileRow *object;
     1806        bool            status;
     1807
     1808        object = p4bInputScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string");
     1809        if (!object) {
     1810            exit(EXIT_FAILURE);
     1811        }
     1812
     1813        md = p4bInputScfileMetadataFromObject(object);
     1814        if (!md) {
     1815            exit(EXIT_FAILURE);
     1816        }
     1817
     1818        psFree(object);
     1819
     1820        if (!psMetadataLookupS32(&status, md, "p4b_id") == -32) {
     1821            psFree(md);
     1822            exit(EXIT_FAILURE);
     1823        }
     1824        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     1825            psFree(md);
     1826            exit(EXIT_FAILURE);
     1827        }
     1828        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
     1829            psFree(md);
     1830            exit(EXIT_FAILURE);
     1831        }
     1832        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1833            psFree(md);
     1834            exit(EXIT_FAILURE);
     1835        }
     1836        if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
     1837            psFree(md);
     1838            exit(EXIT_FAILURE);
     1839        }
     1840        if (strncmp(psMetadataLookupPtr(&status, md, "kind"), "a string", MAX_STRING_LENGTH)) {
     1841            psFree(md);
     1842            exit(EXIT_FAILURE);
     1843        }
     1844
     1845        psFree(md);
     1846    }
     1847
     1848    {
     1849        psMetadata      *md;
     1850        p4bDiffScfileRow *object;
     1851        bool            status;
     1852
     1853        object = p4bDiffScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64);
     1854        if (!object) {
     1855            exit(EXIT_FAILURE);
     1856        }
     1857
     1858        md = p4bDiffScfileMetadataFromObject(object);
     1859        if (!md) {
     1860            exit(EXIT_FAILURE);
     1861        }
     1862
     1863        psFree(object);
     1864
     1865        if (!psMetadataLookupS32(&status, md, "p4b_id") == -32) {
     1866            psFree(md);
     1867            exit(EXIT_FAILURE);
     1868        }
     1869        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     1870            psFree(md);
     1871            exit(EXIT_FAILURE);
     1872        }
     1873        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
     1874            psFree(md);
     1875            exit(EXIT_FAILURE);
     1876        }
     1877        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1878            psFree(md);
     1879            exit(EXIT_FAILURE);
     1880        }
     1881        if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
     1882            psFree(md);
     1883            exit(EXIT_FAILURE);
     1884        }
     1885        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     1886            psFree(md);
     1887            exit(EXIT_FAILURE);
     1888        }
     1889        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     1890            psFree(md);
     1891            exit(EXIT_FAILURE);
     1892        }
     1893        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1894            psFree(md);
     1895            exit(EXIT_FAILURE);
     1896        }
     1897
     1898        psFree(md);
     1899    }
     1900
     1901    {
     1902        psMetadata      *md;
     1903        p4cRunRow       *object;
     1904        bool            status;
     1905
     1906        object = p4cRunRowAlloc(-32, "a string", "a string", true);
     1907        if (!object) {
     1908            exit(EXIT_FAILURE);
     1909        }
     1910
     1911        md = p4cRunMetadataFromObject(object);
     1912        if (!md) {
     1913            exit(EXIT_FAILURE);
     1914        }
     1915
     1916        psFree(object);
     1917
     1918        if (!psMetadataLookupS32(&status, md, "p4c_id") == -32) {
     1919            psFree(md);
     1920            exit(EXIT_FAILURE);
     1921        }
     1922        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     1923            psFree(md);
     1924            exit(EXIT_FAILURE);
     1925        }
     1926        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     1927            psFree(md);
     1928            exit(EXIT_FAILURE);
     1929        }
     1930        if (!psMetadataLookupBool(&status, md, "magic") == true) {
     1931            psFree(md);
     1932            exit(EXIT_FAILURE);
     1933        }
     1934
     1935        psFree(md);
     1936    }
     1937
     1938    {
     1939        psMetadata      *md;
     1940        p4cInputExpRow  *object;
     1941        bool            status;
     1942
     1943        object = p4cInputExpRowAlloc(-32, "a string", -32);
     1944        if (!object) {
     1945            exit(EXIT_FAILURE);
     1946        }
     1947
     1948        md = p4cInputExpMetadataFromObject(object);
     1949        if (!md) {
     1950            exit(EXIT_FAILURE);
     1951        }
     1952
     1953        psFree(object);
     1954
     1955        if (!psMetadataLookupS32(&status, md, "p4c_id") == -32) {
     1956            psFree(md);
     1957            exit(EXIT_FAILURE);
     1958        }
     1959        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1960            psFree(md);
     1961            exit(EXIT_FAILURE);
     1962        }
     1963        if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
     1964            psFree(md);
     1965            exit(EXIT_FAILURE);
     1966        }
     1967
     1968        psFree(md);
     1969    }
     1970
     1971    {
     1972        psMetadata      *md;
     1973        p4MagicMaskImfileRow *object;
     1974        bool            status;
     1975
     1976        object = p4MagicMaskImfileRowAlloc(-32, "a string", -32, "a string", "a string");
     1977        if (!object) {
     1978            exit(EXIT_FAILURE);
     1979        }
     1980
     1981        md = p4MagicMaskImfileMetadataFromObject(object);
     1982        if (!md) {
     1983            exit(EXIT_FAILURE);
     1984        }
     1985
     1986        psFree(object);
     1987
     1988        if (!psMetadataLookupS32(&status, md, "p4c_id") == -32) {
     1989            psFree(md);
     1990            exit(EXIT_FAILURE);
     1991        }
     1992        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1993            psFree(md);
     1994            exit(EXIT_FAILURE);
     1995        }
     1996        if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
     1997            psFree(md);
     1998            exit(EXIT_FAILURE);
     1999        }
    17372000        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    17382001            psFree(md);
    17392002            exit(EXIT_FAILURE);
    17402003        }
    1741 
    1742         psFree(md);
    1743     }
    1744 
    1745     {
    1746         psMetadata      *md;
    1747         p4WarpedImfileRow *object;
    1748         bool            status;
    1749 
    1750         object = p4WarpedImfileRowAlloc(-32, "a string", -32, "a string", "a string", "a string", "a string");
    1751         if (!object) {
    1752             exit(EXIT_FAILURE);
    1753         }
    1754 
    1755         md = p4WarpedImfileMetadataFromObject(object);
    1756         if (!md) {
    1757             exit(EXIT_FAILURE);
    1758         }
    1759 
    1760         psFree(object);
    1761 
    1762         if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    1763             psFree(md);
    1764             exit(EXIT_FAILURE);
    1765         }
    1766         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1767             psFree(md);
    1768             exit(EXIT_FAILURE);
    1769         }
    1770         if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
     2004        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     2005            psFree(md);
     2006            exit(EXIT_FAILURE);
     2007        }
     2008
     2009        psFree(md);
     2010    }
     2011
     2012    {
     2013        psMetadata      *md;
     2014        skyCellRow      *object;
     2015        bool            status;
     2016
     2017        object = skyCellRowAlloc("a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64);
     2018        if (!object) {
     2019            exit(EXIT_FAILURE);
     2020        }
     2021
     2022        md = skyCellMetadataFromObject(object);
     2023        if (!md) {
     2024            exit(EXIT_FAILURE);
     2025        }
     2026
     2027        psFree(object);
     2028
     2029        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     2030            psFree(md);
     2031            exit(EXIT_FAILURE);
     2032        }
     2033        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
     2034            psFree(md);
     2035            exit(EXIT_FAILURE);
     2036        }
     2037        if (!psMetadataLookupF64(&status, md, "ra1") == 64.64) {
     2038            psFree(md);
     2039            exit(EXIT_FAILURE);
     2040        }
     2041        if (!psMetadataLookupF64(&status, md, "decl1") == 64.64) {
     2042            psFree(md);
     2043            exit(EXIT_FAILURE);
     2044        }
     2045        if (!psMetadataLookupF64(&status, md, "ra2") == 64.64) {
     2046            psFree(md);
     2047            exit(EXIT_FAILURE);
     2048        }
     2049        if (!psMetadataLookupF64(&status, md, "decl2") == 64.64) {
     2050            psFree(md);
     2051            exit(EXIT_FAILURE);
     2052        }
     2053        if (!psMetadataLookupF64(&status, md, "ra3") == 64.64) {
     2054            psFree(md);
     2055            exit(EXIT_FAILURE);
     2056        }
     2057        if (!psMetadataLookupF64(&status, md, "decl3") == 64.64) {
     2058            psFree(md);
     2059            exit(EXIT_FAILURE);
     2060        }
     2061        if (!psMetadataLookupF64(&status, md, "ra4") == 64.64) {
     2062            psFree(md);
     2063            exit(EXIT_FAILURE);
     2064        }
     2065        if (!psMetadataLookupF64(&status, md, "decl4") == 64.64) {
     2066            psFree(md);
     2067            exit(EXIT_FAILURE);
     2068        }
     2069
     2070        psFree(md);
     2071    }
     2072
     2073    {
     2074        psMetadata      *md;
     2075        skyCellMapRow   *object;
     2076        bool            status;
     2077
     2078        object = skyCellMapRowAlloc("a string", "a string", "a string", "a string");
     2079        if (!object) {
     2080            exit(EXIT_FAILURE);
     2081        }
     2082
     2083        md = skyCellMapMetadataFromObject(object);
     2084        if (!md) {
     2085            exit(EXIT_FAILURE);
     2086        }
     2087
     2088        psFree(object);
     2089
     2090        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     2091            psFree(md);
     2092            exit(EXIT_FAILURE);
     2093        }
     2094        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
     2095            psFree(md);
     2096            exit(EXIT_FAILURE);
     2097        }
     2098        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    17712099            psFree(md);
    17722100            exit(EXIT_FAILURE);
    17732101        }
    17742102        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1775             psFree(md);
    1776             exit(EXIT_FAILURE);
    1777         }
    1778         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1779             psFree(md);
    1780             exit(EXIT_FAILURE);
    1781         }
    1782         if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) {
    1783             psFree(md);
    1784             exit(EXIT_FAILURE);
    1785         }
    1786         if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) {
    1787             psFree(md);
    1788             exit(EXIT_FAILURE);
    1789         }
    1790 
    1791         psFree(md);
    1792     }
    1793 
    1794     {
    1795         psMetadata      *md;
    1796         p4StackedImfileRow *object;
    1797         bool            status;
    1798 
    1799         object = p4StackedImfileRowAlloc(-32, "a string", "a string", "a string", "a string");
    1800         if (!object) {
    1801             exit(EXIT_FAILURE);
    1802         }
    1803 
    1804         md = p4StackedImfileMetadataFromObject(object);
    1805         if (!md) {
    1806             exit(EXIT_FAILURE);
    1807         }
    1808 
    1809         psFree(object);
    1810 
    1811         if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    1812             psFree(md);
    1813             exit(EXIT_FAILURE);
    1814         }
    1815         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1816             psFree(md);
    1817             exit(EXIT_FAILURE);
    1818         }
    1819         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1820             psFree(md);
    1821             exit(EXIT_FAILURE);
    1822         }
    1823         if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) {
    1824             psFree(md);
    1825             exit(EXIT_FAILURE);
    1826         }
    1827         if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) {
    1828             psFree(md);
    1829             exit(EXIT_FAILURE);
    1830         }
    1831 
    1832         psFree(md);
    1833     }
    1834 
    1835     {
    1836         psMetadata      *md;
    1837         p4DiffImfileRow *object;
    1838         bool            status;
    1839 
    1840         object = p4DiffImfileRowAlloc(-32, "a string", -32, "a string", "a string", "a string", "a string");
    1841         if (!object) {
    1842             exit(EXIT_FAILURE);
    1843         }
    1844 
    1845         md = p4DiffImfileMetadataFromObject(object);
    1846         if (!md) {
    1847             exit(EXIT_FAILURE);
    1848         }
    1849 
    1850         psFree(object);
    1851 
    1852         if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    1853             psFree(md);
    1854             exit(EXIT_FAILURE);
    1855         }
    1856         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1857             psFree(md);
    1858             exit(EXIT_FAILURE);
    1859         }
    1860         if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
    1861             psFree(md);
    1862             exit(EXIT_FAILURE);
    1863         }
    1864         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1865             psFree(md);
    1866             exit(EXIT_FAILURE);
    1867         }
    1868         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1869             psFree(md);
    1870             exit(EXIT_FAILURE);
    1871         }
    1872         if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) {
    1873             psFree(md);
    1874             exit(EXIT_FAILURE);
    1875         }
    1876         if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) {
    1877             psFree(md);
    1878             exit(EXIT_FAILURE);
    1879         }
    1880 
    1881         psFree(md);
    1882     }
    1883 
    1884     {
    1885         psMetadata      *md;
    1886         p4MagicMaskImfileRow *object;
    1887         bool            status;
    1888 
    1889         object = p4MagicMaskImfileRowAlloc(-32, "a string", -32, "a string", "a string");
    1890         if (!object) {
    1891             exit(EXIT_FAILURE);
    1892         }
    1893 
    1894         md = p4MagicMaskImfileMetadataFromObject(object);
    1895         if (!md) {
    1896             exit(EXIT_FAILURE);
    1897         }
    1898 
    1899         psFree(object);
    1900 
    1901         if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    1902             psFree(md);
    1903             exit(EXIT_FAILURE);
    1904         }
    1905         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1906             psFree(md);
    1907             exit(EXIT_FAILURE);
    1908         }
    1909         if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
    1910             psFree(md);
    1911             exit(EXIT_FAILURE);
    1912         }
    1913         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1914             psFree(md);
    1915             exit(EXIT_FAILURE);
    1916         }
    1917         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    19182103            psFree(md);
    19192104            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.