Changeset 11077 for trunk/ippdb/tests
- Timestamp:
- Jan 12, 2007, 12:25:20 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
r11045 r11077 696 696 p3PendingExpRow *object; 697 697 698 object = p3PendingExpRowAlloc("a string", -32, -32, "a string" , -16);698 object = p3PendingExpRowAlloc("a string", -32, -32, "a string" ); 699 699 700 700 if (!object) { … … 718 718 exit(EXIT_FAILURE); 719 719 } 720 psFree(object);721 exit(EXIT_FAILURE);722 }723 720 724 721 psFree(object); … … 728 725 p3ProcessedExpRow *object; 729 726 730 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string" );727 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string", -16 ); 731 728 732 729 if (!object) { … … 795 792 } 796 793 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 794 psFree(object); 795 exit(EXIT_FAILURE); 796 } 797 797 psFree(object); 798 798 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r11045 r11077 268 268 } 269 269 270 if (!p3PendingExpInsert(dbh, "a string", -32, -32, "a string" , -16)) {271 exit(EXIT_FAILURE); 272 } 273 274 psDBCleanup(dbh); 275 } 276 277 { 278 psDB *dbh; 279 280 dbh = psDBInit("localhost", "test", NULL, "test"); 281 if (!dbh) { 282 exit(EXIT_FAILURE); 283 } 284 285 if (!p3ProcessedExpInsert(dbh, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string" )) {270 if (!p3PendingExpInsert(dbh, "a string", -32, -32, "a string")) { 271 exit(EXIT_FAILURE); 272 } 273 274 psDBCleanup(dbh); 275 } 276 277 { 278 psDB *dbh; 279 280 dbh = psDBInit("localhost", "test", NULL, "test"); 281 if (!dbh) { 282 exit(EXIT_FAILURE); 283 } 284 285 if (!p3ProcessedExpInsert(dbh, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string", -16)) { 286 286 exit(EXIT_FAILURE); 287 287 } -
trunk/ippdb/tests/insertobject.c
r11045 r11077 388 388 } 389 389 390 object = p3PendingExpRowAlloc("a string", -32, -32, "a string" , -16);390 object = p3PendingExpRowAlloc("a string", -32, -32, "a string"); 391 391 if (!object) { 392 392 exit(EXIT_FAILURE); … … 410 410 } 411 411 412 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string" );412 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string", -16); 413 413 if (!object) { 414 414 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r11045 r11077 834 834 bool status; 835 835 836 object = p3PendingExpRowAlloc("a string", -32, -32, "a string" , -16);836 object = p3PendingExpRowAlloc("a string", -32, -32, "a string"); 837 837 if (!object) { 838 838 exit(EXIT_FAILURE); … … 862 862 exit(EXIT_FAILURE); 863 863 } 864 psFree(md);865 exit(EXIT_FAILURE);866 }867 864 868 865 psFree(md); … … 874 871 bool status; 875 872 876 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string" );873 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string", -16); 877 874 if (!object) { 878 875 exit(EXIT_FAILURE); … … 947 944 } 948 945 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 946 psFree(md); 947 exit(EXIT_FAILURE); 948 } 949 949 psFree(md); 950 950 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r11045 r11077 1263 1263 exit(EXIT_FAILURE); 1264 1264 } 1265 psFree(md);1266 exit(EXIT_FAILURE);1267 }1268 1265 1269 1266 object = p3PendingExpObjectFromMetadata(md); … … 1291 1288 exit(EXIT_FAILURE); 1292 1289 } 1293 psFree(object);1294 exit(EXIT_FAILURE);1295 }1296 1290 1297 1291 psFree(object); … … 1367 1361 exit(EXIT_FAILURE); 1368 1362 } 1363 psFree(md); 1364 exit(EXIT_FAILURE); 1365 } 1369 1366 1370 1367 object = p3ProcessedExpObjectFromMetadata(md); … … 1437 1434 } 1438 1435 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 1436 psFree(object); 1437 exit(EXIT_FAILURE); 1438 } 1439 1439 psFree(object); 1440 1440 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
