Changeset 9783 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Oct 30, 2006, 11:25:59 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r9705 r9783 477 477 p2PendingExpRow *object; 478 478 479 object = p2PendingExpRowAlloc("a string", "a string", -32, -32 );479 object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string" ); 480 480 481 481 if (!object) { … … 499 499 exit(EXIT_FAILURE); 500 500 } 501 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 502 psFree(object); 503 exit(EXIT_FAILURE); 504 } 501 505 502 506 psFree(object); … … 543 547 p2ProcessedExpRow *object; 544 548 545 object = p2ProcessedExpRowAlloc("a string", -32, -32 );549 object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string" ); 546 550 547 551 if (!object) { … … 558 562 } 559 563 if (!object->p2_version == -32) { 564 psFree(object); 565 exit(EXIT_FAILURE); 566 } 567 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 568 psFree(object); 569 exit(EXIT_FAILURE); 570 } 571 572 psFree(object); 573 } 574 575 { 576 p2MaskRow *object; 577 578 object = p2MaskRowAlloc("a string" ); 579 580 if (!object) { 581 exit(EXIT_FAILURE); 582 } 583 584 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 560 585 psFree(object); 561 586 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
