Changeset 10152 for trunk/ippdb/tests
- Timestamp:
- Nov 22, 2006, 3:42:57 PM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 5 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)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r10110 r10152 894 894 detRunRow *object; 895 895 896 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z" );896 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z" ); 897 897 898 898 if (!object) { … … 909 909 } 910 910 if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) { 911 psFree(object); 912 exit(EXIT_FAILURE); 913 } 914 if (strncmp(object->det_mode, "a string", MAX_STRING_LENGTH)) { 911 915 psFree(object); 912 916 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r10110 r10152 328 328 } 329 329 330 if (!detRunInsert(dbh, -32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z")) {330 if (!detRunInsert(dbh, -32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z")) { 331 331 exit(EXIT_FAILURE); 332 332 } -
trunk/ippdb/tests/insertobject.c
r10110 r10152 476 476 } 477 477 478 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");478 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z"); 479 479 if (!object) { 480 480 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r10110 r10152 1064 1064 bool status; 1065 1065 1066 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");1066 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z"); 1067 1067 if (!object) { 1068 1068 exit(EXIT_FAILURE); … … 1085 1085 } 1086 1086 if (strncmp(psMetadataLookupPtr(&status, md, "det_type"), "a string", MAX_STRING_LENGTH)) { 1087 psFree(md); 1088 exit(EXIT_FAILURE); 1089 } 1090 if (strncmp(psMetadataLookupPtr(&status, md, "det_mode"), "a string", MAX_STRING_LENGTH)) { 1087 1091 psFree(md); 1088 1092 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r10110 r10152 1623 1623 exit(EXIT_FAILURE); 1624 1624 } 1625 if (!psMetadataAddStr(md, PS_LIST_TAIL, "det_mode", 0, NULL, "a string")) { 1626 psFree(md); 1627 exit(EXIT_FAILURE); 1628 } 1625 1629 if (!psMetadataAddStr(md, PS_LIST_TAIL, "state", 0, NULL, "a string")) { 1626 1630 psFree(md); … … 1682 1686 } 1683 1687 if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) { 1688 psFree(object); 1689 exit(EXIT_FAILURE); 1690 } 1691 if (strncmp(object->det_mode, "a string", MAX_STRING_LENGTH)) { 1684 1692 psFree(object); 1685 1693 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
