Changeset 11873 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Feb 16, 2007, 6:14:42 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r11867 r11873 532 532 p2PendingExpRow *object; 533 533 534 object = p2PendingExpRowAlloc("a string", -32, -32, "a string", "a string" );534 object = p2PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", "a string" ); 535 535 536 536 if (!object) { … … 558 558 exit(EXIT_FAILURE); 559 559 } 560 if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) { 561 psFree(object); 562 exit(EXIT_FAILURE); 563 } 564 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 565 psFree(object); 566 exit(EXIT_FAILURE); 567 } 560 568 561 569 psFree(object); … … 602 610 p2ProcessedExpRow *object; 603 611 604 object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string" );612 object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string" ); 605 613 606 614 if (!object) { … … 624 632 exit(EXIT_FAILURE); 625 633 } 634 if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) { 635 psFree(object); 636 exit(EXIT_FAILURE); 637 } 638 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 639 psFree(object); 640 exit(EXIT_FAILURE); 641 } 626 642 627 643 psFree(object); … … 709 725 p3PendingExpRow *object; 710 726 711 object = p3PendingExpRowAlloc("a string", -32, -32, "a string" );727 object = p3PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string" ); 712 728 713 729 if (!object) { … … 731 747 exit(EXIT_FAILURE); 732 748 } 749 if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) { 750 psFree(object); 751 exit(EXIT_FAILURE); 752 } 753 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 754 psFree(object); 755 exit(EXIT_FAILURE); 756 } 733 757 734 758 psFree(object); … … 738 762 p3ProcessedExpRow *object; 739 763 740 object = p3ProcessedExpRowAlloc("a string", -32, -32, "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, -16 );764 object = p3ProcessedExpRowAlloc("a string", -32, -32, "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, -16, "a string", "a string" ); 741 765 742 766 if (!object) { … … 812 836 exit(EXIT_FAILURE); 813 837 } 838 if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) { 839 psFree(object); 840 exit(EXIT_FAILURE); 841 } 842 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 843 psFree(object); 844 exit(EXIT_FAILURE); 845 } 814 846 815 847 psFree(object); … … 1430 1462 p4RunRow *object; 1431 1463 1432 object = p4RunRowAlloc(-32, "a string", "a string", "a string", " 0001-01-01T00:00:00Z" );1464 object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z" ); 1433 1465 1434 1466 if (!object) { … … 1452 1484 exit(EXIT_FAILURE); 1453 1485 } 1486 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 1487 psFree(object); 1488 exit(EXIT_FAILURE); 1489 } 1454 1490 psFree(object); 1455 1491 exit(EXIT_FAILURE); … … 1573 1609 p5RunRow *object; 1574 1610 1575 object = p5RunRowAlloc(-32, "a string", "a string", " 0001-01-01T00:00:00Z" );1611 object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z" ); 1576 1612 1577 1613 if (!object) { … … 1591 1627 exit(EXIT_FAILURE); 1592 1628 } 1629 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 1630 psFree(object); 1631 exit(EXIT_FAILURE); 1632 } 1593 1633 psFree(object); 1594 1634 exit(EXIT_FAILURE); … … 1675 1715 p6RunRow *object; 1676 1716 1677 object = p6RunRowAlloc(-32, "a string", "a string", " 0001-01-01T00:00:00Z" );1717 object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z" ); 1678 1718 1679 1719 if (!object) { … … 1690 1730 } 1691 1731 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 1732 psFree(object); 1733 exit(EXIT_FAILURE); 1734 } 1735 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 1692 1736 psFree(object); 1693 1737 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
