Changeset 9173 for trunk/ippdb/tests
- Timestamp:
- Oct 3, 2006, 4:59:05 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
r9149 r9173 937 937 detRunRow *object; 938 938 939 object = detRunRowAlloc(-32, "a string" );939 object = detRunRowAlloc(-32, "a string", "a string" ); 940 940 941 941 if (!object) { … … 948 948 } 949 949 if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) { 950 psFree(object); 951 exit(EXIT_FAILURE); 952 } 953 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 950 954 psFree(object); 951 955 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r9149 r9173 343 343 } 344 344 345 if (!detRunInsert(dbh, -32, "a string" )) {345 if (!detRunInsert(dbh, -32, "a string", "a string")) { 346 346 exit(EXIT_FAILURE); 347 347 } -
trunk/ippdb/tests/insertobject.c
r9149 r9173 498 498 } 499 499 500 object = detRunRowAlloc(-32, "a string" );500 object = detRunRowAlloc(-32, "a string", "a string"); 501 501 if (!object) { 502 502 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r9149 r9173 1115 1115 bool status; 1116 1116 1117 object = detRunRowAlloc(-32, "a string" );1117 object = detRunRowAlloc(-32, "a string", "a string"); 1118 1118 if (!object) { 1119 1119 exit(EXIT_FAILURE); … … 1132 1132 } 1133 1133 if (strncmp(psMetadataLookupPtr(&status, md, "det_type"), "a string", MAX_STRING_LENGTH)) { 1134 psFree(md); 1135 exit(EXIT_FAILURE); 1136 } 1137 if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) { 1134 1138 psFree(md); 1135 1139 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r9149 r9173 1697 1697 exit(EXIT_FAILURE); 1698 1698 } 1699 if (!psMetadataAddStr(md, PS_LIST_TAIL, "state", 0, NULL, "a string")) { 1700 psFree(md); 1701 exit(EXIT_FAILURE); 1702 } 1699 1703 1700 1704 object = detRunObjectFromMetadata(md); … … 1711 1715 } 1712 1716 if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) { 1717 psFree(object); 1718 exit(EXIT_FAILURE); 1719 } 1720 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 1713 1721 psFree(object); 1714 1722 exit(EXIT_FAILURE); -
trunk/ippdb/tests/pop.c
r9149 r9173 499 499 psS32 iteration; 500 500 char det_type[256]; 501 502 dbh = psDBInit("localhost", "test", NULL, "test"); 503 if (!dbh) { 504 exit(EXIT_FAILURE); 505 } 506 507 if (!detRunPop(dbh, &iteration, (char **)&det_type)) { 501 char state[256]; 502 503 dbh = psDBInit("localhost", "test", NULL, "test"); 504 if (!dbh) { 505 exit(EXIT_FAILURE); 506 } 507 508 if (!detRunPop(dbh, &iteration, (char **)&det_type, (char **)&state)) { 508 509 exit(EXIT_FAILURE); 509 510 }
Note:
See TracChangeset
for help on using the changeset viewer.
