Changeset 11005 for trunk/ippdb/tests
- Timestamp:
- Jan 9, 2007, 4:00:11 PM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 5 edited
-
alloc.c (modified) (4 diffs)
-
insert.c (modified) (1 diff)
-
insertobject.c (modified) (2 diffs)
-
metadatafromobject.c (modified) (4 diffs)
-
objectfrommetadata.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r10989 r11005 608 608 p2PendingExpRow *object; 609 609 610 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string" );610 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16 ); 611 611 612 612 if (!object) { … … 634 634 exit(EXIT_FAILURE); 635 635 } 636 psFree(object); 637 exit(EXIT_FAILURE); 638 } 636 639 637 640 psFree(object); … … 641 644 p2PendingImfileRow *object; 642 645 643 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32 );646 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16 ); 644 647 645 648 if (!object) { … … 668 671 } 669 672 if (!object->p2_version == -32) { 673 psFree(object); 674 exit(EXIT_FAILURE); 675 } 670 676 psFree(object); 671 677 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r10989 r11005 208 208 } 209 209 210 if (!p2PendingExpInsert(dbh, "a string", "a string", -32, -32, "a string" )) {211 exit(EXIT_FAILURE); 212 } 213 214 psDBCleanup(dbh); 215 } 216 217 { 218 psDB *dbh; 219 220 dbh = psDBInit("localhost", "test", NULL, "test"); 221 if (!dbh) { 222 exit(EXIT_FAILURE); 223 } 224 225 if (!p2PendingImfileInsert(dbh, "a string", "a string", "a string", "a string", -32, -32 )) {210 if (!p2PendingExpInsert(dbh, "a string", "a string", -32, -32, "a string", -16)) { 211 exit(EXIT_FAILURE); 212 } 213 214 psDBCleanup(dbh); 215 } 216 217 { 218 psDB *dbh; 219 220 dbh = psDBInit("localhost", "test", NULL, "test"); 221 if (!dbh) { 222 exit(EXIT_FAILURE); 223 } 224 225 if (!p2PendingImfileInsert(dbh, "a string", "a string", "a string", "a string", -32, -32, -16)) { 226 226 exit(EXIT_FAILURE); 227 227 } -
trunk/ippdb/tests/insertobject.c
r10989 r11005 300 300 } 301 301 302 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string" );302 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16); 303 303 if (!object) { 304 304 exit(EXIT_FAILURE); … … 322 322 } 323 323 324 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32 );324 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16); 325 325 if (!object) { 326 326 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r10989 r11005 714 714 bool status; 715 715 716 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string" );716 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string", -16); 717 717 if (!object) { 718 718 exit(EXIT_FAILURE); … … 746 746 exit(EXIT_FAILURE); 747 747 } 748 psFree(md); 749 exit(EXIT_FAILURE); 750 } 748 751 749 752 psFree(md); … … 755 758 bool status; 756 759 757 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32 );760 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32, -16); 758 761 if (!object) { 759 762 exit(EXIT_FAILURE); … … 788 791 } 789 792 if (!psMetadataLookupS32(&status, md, "p2_version") == -32) { 793 psFree(md); 794 exit(EXIT_FAILURE); 795 } 790 796 psFree(md); 791 797 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r10989 r11005 1123 1123 exit(EXIT_FAILURE); 1124 1124 } 1125 psFree(md); 1126 exit(EXIT_FAILURE); 1127 } 1125 1128 1126 1129 object = p2PendingExpObjectFromMetadata(md); … … 1152 1155 exit(EXIT_FAILURE); 1153 1156 } 1157 psFree(object); 1158 exit(EXIT_FAILURE); 1159 } 1154 1160 1155 1161 psFree(object); … … 1185 1191 exit(EXIT_FAILURE); 1186 1192 } 1193 psFree(md); 1194 exit(EXIT_FAILURE); 1195 } 1187 1196 1188 1197 object = p2PendingImfileObjectFromMetadata(md); … … 1215 1224 } 1216 1225 if (!object->p2_version == -32) { 1226 psFree(object); 1227 exit(EXIT_FAILURE); 1228 } 1217 1229 psFree(object); 1218 1230 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
