Changeset 11820 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Feb 14, 2007, 5:58:26 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r11809 r11820 384 384 bool status; 385 385 386 object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", -16);386 object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", 32.32, -16); 387 387 if (!object) { 388 388 exit(EXIT_FAILURE); … … 479 479 exit(EXIT_FAILURE); 480 480 } 481 if (!psMetadataLookupF32(&status, md, "solang") == 32.32) { 482 psFree(md); 483 exit(EXIT_FAILURE); 484 } 481 485 psFree(md); 482 486 exit(EXIT_FAILURE); … … 989 993 bool status; 990 994 991 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z" );995 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32); 992 996 if (!object) { 993 997 exit(EXIT_FAILURE); … … 1088 1092 exit(EXIT_FAILURE); 1089 1093 } 1094 if (!psMetadataLookupF32(&status, md, "solang_min") == 32.32) { 1095 psFree(md); 1096 exit(EXIT_FAILURE); 1097 } 1098 if (!psMetadataLookupF32(&status, md, "solang_max") == 32.32) { 1099 psFree(md); 1100 exit(EXIT_FAILURE); 1101 } 1102 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 1103 psFree(md); 1104 exit(EXIT_FAILURE); 1105 } 1106 if (!psMetadataLookupS32(&status, md, "parent") == -32) { 1107 psFree(md); 1108 exit(EXIT_FAILURE); 1109 } 1090 1110 1091 1111 psFree(md); … … 1857 1877 bool status; 1858 1878 1859 object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", -32, "a string",true);1879 object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", true); 1860 1880 if (!object) { 1861 1881 exit(EXIT_FAILURE); … … 1885 1905 exit(EXIT_FAILURE); 1886 1906 } 1887 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {1888 psFree(md);1889 exit(EXIT_FAILURE);1890 }1891 if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {1892 psFree(md);1893 exit(EXIT_FAILURE);1894 }1895 1907 if (strncmp(psMetadataLookupPtr(&status, md, "kind"), "a string", MAX_STRING_LENGTH)) { 1896 1908 psFree(md); … … 1943 1955 } 1944 1956 if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) { 1957 psFree(md); 1958 exit(EXIT_FAILURE); 1959 } 1960 1961 psFree(md); 1962 } 1963 1964 { 1965 psMetadata *md; 1966 p6RunRow *object; 1967 bool status; 1968 1969 object = p6RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z"); 1970 if (!object) { 1971 exit(EXIT_FAILURE); 1972 } 1973 1974 md = p6RunMetadataFromObject(object); 1975 if (!md) { 1976 exit(EXIT_FAILURE); 1977 } 1978 1979 psFree(object); 1980 1981 if (!psMetadataLookupS32(&status, md, "p6_id") == -32) { 1982 psFree(md); 1983 exit(EXIT_FAILURE); 1984 } 1985 if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) { 1986 psFree(md); 1987 exit(EXIT_FAILURE); 1988 } 1989 if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) { 1990 psFree(md); 1991 exit(EXIT_FAILURE); 1992 } 1945 1993 psFree(md); 1946 1994 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
