Changeset 9213 for trunk/ippdb/tests
- Timestamp:
- Oct 4, 2006, 11:22:25 AM (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
r9187 r9213 1175 1175 detNormalizedImfileRow *object; 1176 1176 1177 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string" );1177 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string" ); 1178 1178 1179 1179 if (!object) { … … 1194 1194 } 1195 1195 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1196 psFree(object); 1197 exit(EXIT_FAILURE); 1198 } 1199 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1200 psFree(object); 1201 exit(EXIT_FAILURE); 1202 } 1203 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1196 1204 psFree(object); 1197 1205 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r9187 r9213 433 433 } 434 434 435 if (!detNormalizedImfileInsert(dbh, -32, -32, "a string", "a string" )) {435 if (!detNormalizedImfileInsert(dbh, -32, -32, "a string", "a string", "a string", "a string")) { 436 436 exit(EXIT_FAILURE); 437 437 } -
trunk/ippdb/tests/insertobject.c
r9187 r9213 630 630 } 631 631 632 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string" );632 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string"); 633 633 if (!object) { 634 634 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r9187 r9213 1401 1401 bool status; 1402 1402 1403 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string" );1403 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string"); 1404 1404 if (!object) { 1405 1405 exit(EXIT_FAILURE); … … 1426 1426 } 1427 1427 if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) { 1428 psFree(md); 1429 exit(EXIT_FAILURE); 1430 } 1431 if (strncmp(psMetadataLookupPtr(&status, md, "b1_uri"), "a string", MAX_STRING_LENGTH)) { 1432 psFree(md); 1433 exit(EXIT_FAILURE); 1434 } 1435 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1428 1436 psFree(md); 1429 1437 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r9187 r9213 2133 2133 exit(EXIT_FAILURE); 2134 2134 } 2135 if (!psMetadataAddStr(md, PS_LIST_TAIL, "b1_uri", 0, NULL, "a string")) { 2136 psFree(md); 2137 exit(EXIT_FAILURE); 2138 } 2139 if (!psMetadataAddStr(md, PS_LIST_TAIL, "b2_uri", 0, NULL, "a string")) { 2140 psFree(md); 2141 exit(EXIT_FAILURE); 2142 } 2135 2143 2136 2144 object = detNormalizedImfileObjectFromMetadata(md); … … 2155 2163 } 2156 2164 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2165 psFree(object); 2166 exit(EXIT_FAILURE); 2167 } 2168 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 2169 psFree(object); 2170 exit(EXIT_FAILURE); 2171 } 2172 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 2157 2173 psFree(object); 2158 2174 exit(EXIT_FAILURE); -
trunk/ippdb/tests/pop.c
r9187 r9213 631 631 char class_id[256]; 632 632 char uri[256]; 633 634 dbh = psDBInit("localhost", "test", NULL, "test"); 635 if (!dbh) { 636 exit(EXIT_FAILURE); 637 } 638 639 if (!detNormalizedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri)) { 633 char b1_uri[256]; 634 char b2_uri[256]; 635 636 dbh = psDBInit("localhost", "test", NULL, "test"); 637 if (!dbh) { 638 exit(EXIT_FAILURE); 639 } 640 641 if (!detNormalizedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&b1_uri, (char **)&b2_uri)) { 640 642 exit(EXIT_FAILURE); 641 643 }
Note:
See TracChangeset
for help on using the changeset viewer.
