Changeset 11873 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Feb 16, 2007, 6:14:42 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r11867 r11873 627 627 bool status; 628 628 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"); 630 630 if (!object) { 631 631 exit(EXIT_FAILURE); … … 659 659 exit(EXIT_FAILURE); 660 660 } 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 } 661 669 662 670 psFree(md); … … 713 721 bool status; 714 722 715 object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string" );723 object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string"); 716 724 if (!object) { 717 725 exit(EXIT_FAILURE); … … 741 749 exit(EXIT_FAILURE); 742 750 } 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 } 743 759 744 760 psFree(md); … … 843 859 bool status; 844 860 845 object = p3PendingExpRowAlloc("a string", -32, -32, "a string" );861 object = p3PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string"); 846 862 if (!object) { 847 863 exit(EXIT_FAILURE); … … 871 887 exit(EXIT_FAILURE); 872 888 } 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 } 873 897 874 898 psFree(md); … … 880 904 bool status; 881 905 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"); 883 907 if (!object) { 884 908 exit(EXIT_FAILURE); … … 959 983 exit(EXIT_FAILURE); 960 984 } 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 } 961 993 962 994 psFree(md); … … 1666 1698 bool status; 1667 1699 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"); 1669 1701 if (!object) { 1670 1702 exit(EXIT_FAILURE); … … 1694 1726 exit(EXIT_FAILURE); 1695 1727 } 1728 if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) { 1729 psFree(md); 1730 exit(EXIT_FAILURE); 1731 } 1696 1732 psFree(md); 1697 1733 exit(EXIT_FAILURE); … … 1841 1877 bool status; 1842 1878 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"); 1844 1880 if (!object) { 1845 1881 exit(EXIT_FAILURE); … … 1865 1901 exit(EXIT_FAILURE); 1866 1902 } 1903 if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) { 1904 psFree(md); 1905 exit(EXIT_FAILURE); 1906 } 1867 1907 psFree(md); 1868 1908 exit(EXIT_FAILURE); … … 1967 2007 bool status; 1968 2008 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"); 1970 2010 if (!object) { 1971 2011 exit(EXIT_FAILURE); … … 1988 2028 } 1989 2029 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)) { 1990 2034 psFree(md); 1991 2035 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
