Changeset 11030 for trunk/ippdb/tests
- Timestamp:
- Jan 11, 2007, 11:59:35 AM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 5 edited
-
alloc.c (modified) (6 diffs)
-
insert.c (modified) (2 diffs)
-
insertobject.c (modified) (3 diffs)
-
metadatafromobject.c (modified) (6 diffs)
-
objectfrommetadata.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r11027 r11030 608 608 p2PendingExpRow *object; 609 609 610 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string" , -16);610 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string" ); 611 611 612 612 if (!object) { … … 634 634 exit(EXIT_FAILURE); 635 635 } 636 psFree(object);637 exit(EXIT_FAILURE);638 }639 636 640 637 psFree(object); … … 644 641 p2PendingImfileRow *object; 645 642 646 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32 , -16);643 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32 ); 647 644 648 645 if (!object) { … … 674 671 exit(EXIT_FAILURE); 675 672 } 676 psFree(object);677 exit(EXIT_FAILURE);678 }679 673 680 674 psFree(object); … … 730 724 p2ProcessedImfileRow *object; 731 725 732 object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32 );726 object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32, -16 ); 733 727 734 728 if (!object) { … … 777 771 } 778 772 if (!object->p2_version == -32) { 773 psFree(object); 774 exit(EXIT_FAILURE); 775 } 779 776 psFree(object); 780 777 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r11027 r11030 208 208 } 209 209 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)) {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)) { 226 226 exit(EXIT_FAILURE); 227 227 } … … 268 268 } 269 269 270 if (!p2ProcessedImfileInsert(dbh, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32 )) {270 if (!p2ProcessedImfileInsert(dbh, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32, -16)) { 271 271 exit(EXIT_FAILURE); 272 272 } -
trunk/ippdb/tests/insertobject.c
r11027 r11030 300 300 } 301 301 302 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string" , -16);302 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string"); 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 , -16);324 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32); 325 325 if (!object) { 326 326 exit(EXIT_FAILURE); … … 388 388 } 389 389 390 object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32 );390 object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32, -16); 391 391 if (!object) { 392 392 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r11027 r11030 714 714 bool status; 715 715 716 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string" , -16);716 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string"); 717 717 if (!object) { 718 718 exit(EXIT_FAILURE); … … 746 746 exit(EXIT_FAILURE); 747 747 } 748 psFree(md);749 exit(EXIT_FAILURE);750 }751 748 752 749 psFree(md); … … 758 755 bool status; 759 756 760 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32 , -16);757 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32); 761 758 if (!object) { 762 759 exit(EXIT_FAILURE); … … 794 791 exit(EXIT_FAILURE); 795 792 } 796 psFree(md);797 exit(EXIT_FAILURE);798 }799 793 800 794 psFree(md); … … 868 862 bool status; 869 863 870 object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32 );864 object = p2ProcessedImfileRowAlloc("a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -32, -32, -16); 871 865 if (!object) { 872 866 exit(EXIT_FAILURE); … … 921 915 } 922 916 if (!psMetadataLookupS32(&status, md, "p2_version") == -32) { 917 psFree(md); 918 exit(EXIT_FAILURE); 919 } 923 920 psFree(md); 924 921 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r11027 r11030 1123 1123 exit(EXIT_FAILURE); 1124 1124 } 1125 psFree(md);1126 exit(EXIT_FAILURE);1127 }1128 1125 1129 1126 object = p2PendingExpObjectFromMetadata(md); … … 1155 1152 exit(EXIT_FAILURE); 1156 1153 } 1157 psFree(object);1158 exit(EXIT_FAILURE);1159 }1160 1154 1161 1155 psFree(object); … … 1191 1185 exit(EXIT_FAILURE); 1192 1186 } 1193 psFree(md);1194 exit(EXIT_FAILURE);1195 }1196 1187 1197 1188 object = p2PendingImfileObjectFromMetadata(md); … … 1227 1218 exit(EXIT_FAILURE); 1228 1219 } 1229 psFree(object);1230 exit(EXIT_FAILURE);1231 }1232 1220 1233 1221 psFree(object); … … 1359 1347 exit(EXIT_FAILURE); 1360 1348 } 1349 psFree(md); 1350 exit(EXIT_FAILURE); 1351 } 1361 1352 1362 1353 object = p2ProcessedImfileObjectFromMetadata(md); … … 1409 1400 } 1410 1401 if (!object->p2_version == -32) { 1402 psFree(object); 1403 exit(EXIT_FAILURE); 1404 } 1411 1405 psFree(object); 1412 1406 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
