Changeset 8026 for branches/jhoblitt/ippdb/tests/alloc.c
- Timestamp:
- Jul 31, 2006, 4:12:32 PM (20 years ago)
- File:
-
- 1 edited
-
branches/jhoblitt/ippdb/tests/alloc.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/jhoblitt/ippdb/tests/alloc.c
r8020 r8026 384 384 pzPendingImfileRow *object; 385 385 386 object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string" );386 object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string", "a string" ); 387 387 388 388 if (!object) { … … 402 402 exit(EXIT_FAILURE); 403 403 } 404 if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) { 405 psFree(object); 406 exit(EXIT_FAILURE); 407 } 404 408 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 405 409 psFree(object); … … 450 454 newImfileRow *object; 451 455 452 object = newImfileRowAlloc("a string", "a string", "a string" ); 453 454 if (!object) { 455 exit(EXIT_FAILURE); 456 } 457 458 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 456 object = newImfileRowAlloc("a string", "a string", "a string", "a string" ); 457 458 if (!object) { 459 exit(EXIT_FAILURE); 460 } 461 462 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 463 psFree(object); 464 exit(EXIT_FAILURE); 465 } 466 if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) { 459 467 psFree(object); 460 468 exit(EXIT_FAILURE); … … 557 565 rawImfileRow *object; 558 566 559 object = rawImfileRowAlloc("a string", "a string", "a string", "a string" ); 560 561 if (!object) { 562 exit(EXIT_FAILURE); 563 } 564 565 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 567 object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string" ); 568 569 if (!object) { 570 exit(EXIT_FAILURE); 571 } 572 573 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 574 psFree(object); 575 exit(EXIT_FAILURE); 576 } 577 if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) { 566 578 psFree(object); 567 579 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
