Changeset 9044 for trunk/ippdb/tests
- Timestamp:
- Sep 28, 2006, 4:31:14 PM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 6 edited
-
alloc.c (modified) (2 diffs)
-
insert.c (modified) (1 diff)
-
insertobject.c (modified) (1 diff)
-
metadatafromobject.c (modified) (2 diffs)
-
objectfrommetadata.c (modified) (2 diffs)
-
pop.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r8665 r9044 974 974 detProcessedImfileRow *object; 975 975 976 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64 );976 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string" ); 977 977 978 978 if (!object) { … … 1009 1009 } 1010 1010 if (!object->bg_mean_stdev == 64.64) { 1011 psFree(object); 1012 exit(EXIT_FAILURE); 1013 } 1014 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1015 psFree(object); 1016 exit(EXIT_FAILURE); 1017 } 1018 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1011 1019 psFree(object); 1012 1020 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r8665 r9044 373 373 } 374 374 375 if (!detProcessedImfileInsert(dbh, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64 )) {375 if (!detProcessedImfileInsert(dbh, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string")) { 376 376 exit(EXIT_FAILURE); 377 377 } -
trunk/ippdb/tests/insertobject.c
r8665 r9044 542 542 } 543 543 544 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64 );544 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string"); 545 545 if (!object) { 546 546 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r8665 r9044 1169 1169 bool status; 1170 1170 1171 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64 );1171 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string"); 1172 1172 if (!object) { 1173 1173 exit(EXIT_FAILURE); … … 1210 1210 } 1211 1211 if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) { 1212 psFree(md); 1213 exit(EXIT_FAILURE); 1214 } 1215 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 1216 psFree(md); 1217 exit(EXIT_FAILURE); 1218 } 1219 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1212 1220 psFree(md); 1213 1221 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r8665 r9044 1781 1781 exit(EXIT_FAILURE); 1782 1782 } 1783 if (!psMetadataAddStr(md, PS_LIST_TAIL, "b1_uri", 0, NULL, "a string")) { 1784 psFree(md); 1785 exit(EXIT_FAILURE); 1786 } 1787 if (!psMetadataAddStr(md, PS_LIST_TAIL, "b2_uri", 0, NULL, "a string")) { 1788 psFree(md); 1789 exit(EXIT_FAILURE); 1790 } 1783 1791 1784 1792 object = detProcessedImfileObjectFromMetadata(md); … … 1819 1827 } 1820 1828 if (!object->bg_mean_stdev == 64.64) { 1829 psFree(object); 1830 exit(EXIT_FAILURE); 1831 } 1832 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1833 psFree(object); 1834 exit(EXIT_FAILURE); 1835 } 1836 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1821 1837 psFree(object); 1822 1838 exit(EXIT_FAILURE); -
trunk/ippdb/tests/pop.c
r8665 r9044 538 538 psF64 bg_stdev; 539 539 psF64 bg_mean_stdev; 540 541 dbh = psDBInit("localhost", "test", NULL, "test"); 542 if (!dbh) { 543 exit(EXIT_FAILURE); 544 } 545 546 if (!detProcessedImfilePop(dbh, &det_id, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev)) { 540 char b1_uri[256]; 541 char b2_uri[256]; 542 543 dbh = psDBInit("localhost", "test", NULL, "test"); 544 if (!dbh) { 545 exit(EXIT_FAILURE); 546 } 547 548 if (!detProcessedImfilePop(dbh, &det_id, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) { 547 549 exit(EXIT_FAILURE); 548 550 }
Note:
See TracChangeset
for help on using the changeset viewer.
