Changeset 12026 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Feb 23, 2007, 4:28:07 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r11988 r12026 505 505 506 506 { 507 p1PendingExpRow *object;508 509 object = p1PendingExpRowAlloc("a string", -32, "a string" );510 511 if (!object) { 512 exit(EXIT_FAILURE); 513 } 514 515 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 516 psFree(object); 517 exit(EXIT_FAILURE); 518 } 519 if (!object-> p1_version == -32) {507 guidePendingExpRow *object; 508 509 object = guidePendingExpRowAlloc("a string", -32, "a string" ); 510 511 if (!object) { 512 exit(EXIT_FAILURE); 513 } 514 515 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 516 psFree(object); 517 exit(EXIT_FAILURE); 518 } 519 if (!object->guide_version == -32) { 520 520 psFree(object); 521 521 exit(EXIT_FAILURE); … … 530 530 531 531 { 532 p2PendingExpRow *object;533 534 object = p2PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", "a string" );535 536 if (!object) { 537 exit(EXIT_FAILURE); 538 } 539 540 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 541 psFree(object); 542 exit(EXIT_FAILURE); 543 } 544 if (!object-> p2_version == -32) {545 psFree(object); 546 exit(EXIT_FAILURE); 547 } 548 if (!object-> p1_version == -32) {532 chipPendingExpRow *object; 533 534 object = chipPendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", "a string" ); 535 536 if (!object) { 537 exit(EXIT_FAILURE); 538 } 539 540 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 541 psFree(object); 542 exit(EXIT_FAILURE); 543 } 544 if (!object->chip_version == -32) { 545 psFree(object); 546 exit(EXIT_FAILURE); 547 } 548 if (!object->guide_version == -32) { 549 549 psFree(object); 550 550 exit(EXIT_FAILURE); … … 571 571 572 572 { 573 p2PendingImfileRow *object;574 575 object = p2PendingImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string" );576 577 if (!object) { 578 exit(EXIT_FAILURE); 579 } 580 581 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 582 psFree(object); 583 exit(EXIT_FAILURE); 584 } 585 if (!object-> p2_version == -32) {586 psFree(object); 587 exit(EXIT_FAILURE); 588 } 589 if (!object-> p1_version == -32) {573 chipPendingImfileRow *object; 574 575 object = chipPendingImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string" ); 576 577 if (!object) { 578 exit(EXIT_FAILURE); 579 } 580 581 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 582 psFree(object); 583 exit(EXIT_FAILURE); 584 } 585 if (!object->chip_version == -32) { 586 psFree(object); 587 exit(EXIT_FAILURE); 588 } 589 if (!object->guide_version == -32) { 590 590 psFree(object); 591 591 exit(EXIT_FAILURE); … … 608 608 609 609 { 610 p2ProcessedExpRow *object;611 612 object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string" );613 614 if (!object) { 615 exit(EXIT_FAILURE); 616 } 617 618 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 619 psFree(object); 620 exit(EXIT_FAILURE); 621 } 622 if (!object-> p2_version == -32) {623 psFree(object); 624 exit(EXIT_FAILURE); 625 } 626 if (!object-> p1_version == -32) {610 chipProcessedExpRow *object; 611 612 object = chipProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string" ); 613 614 if (!object) { 615 exit(EXIT_FAILURE); 616 } 617 618 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 619 psFree(object); 620 exit(EXIT_FAILURE); 621 } 622 if (!object->chip_version == -32) { 623 psFree(object); 624 exit(EXIT_FAILURE); 625 } 626 if (!object->guide_version == -32) { 627 627 psFree(object); 628 628 exit(EXIT_FAILURE); … … 645 645 646 646 { 647 p2MaskRow*object;648 649 object = p2MaskRowAlloc("a string" );647 chipMaskRow *object; 648 649 object = chipMaskRowAlloc("a string" ); 650 650 651 651 if (!object) { … … 662 662 663 663 { 664 p2ProcessedImfileRow *object;665 666 object = p2ProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16 );667 668 if (!object) { 669 exit(EXIT_FAILURE); 670 } 671 672 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 673 psFree(object); 674 exit(EXIT_FAILURE); 675 } 676 if (!object-> p2_version == -32) {677 psFree(object); 678 exit(EXIT_FAILURE); 679 } 680 if (!object-> p1_version == -32) {664 chipProcessedImfileRow *object; 665 666 object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16 ); 667 668 if (!object) { 669 exit(EXIT_FAILURE); 670 } 671 672 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 673 psFree(object); 674 exit(EXIT_FAILURE); 675 } 676 if (!object->chip_version == -32) { 677 psFree(object); 678 exit(EXIT_FAILURE); 679 } 680 if (!object->guide_version == -32) { 681 681 psFree(object); 682 682 exit(EXIT_FAILURE); … … 723 723 724 724 { 725 p3PendingExpRow *object;726 727 object = p3PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string" );728 729 if (!object) { 730 exit(EXIT_FAILURE); 731 } 732 733 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 734 psFree(object); 735 exit(EXIT_FAILURE); 736 } 737 if (!object-> p3_version == -32) {738 psFree(object); 739 exit(EXIT_FAILURE); 740 } 741 if (!object-> p2_version == -32) {725 camPendingExpRow *object; 726 727 object = camPendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string" ); 728 729 if (!object) { 730 exit(EXIT_FAILURE); 731 } 732 733 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 734 psFree(object); 735 exit(EXIT_FAILURE); 736 } 737 if (!object->cam_version == -32) { 738 psFree(object); 739 exit(EXIT_FAILURE); 740 } 741 if (!object->chip_version == -32) { 742 742 psFree(object); 743 743 exit(EXIT_FAILURE); … … 760 760 761 761 { 762 p3ProcessedExpRow *object;763 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" );765 766 if (!object) { 767 exit(EXIT_FAILURE); 768 } 769 770 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 771 psFree(object); 772 exit(EXIT_FAILURE); 773 } 774 if (!object-> p3_version == -32) {775 psFree(object); 776 exit(EXIT_FAILURE); 777 } 778 if (!object-> p2_version == -32) {762 camProcessedExpRow *object; 763 764 object = camProcessedExpRowAlloc("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" ); 765 766 if (!object) { 767 exit(EXIT_FAILURE); 768 } 769 770 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 771 psFree(object); 772 exit(EXIT_FAILURE); 773 } 774 if (!object->cam_version == -32) { 775 psFree(object); 776 exit(EXIT_FAILURE); 777 } 778 if (!object->chip_version == -32) { 779 779 psFree(object); 780 780 exit(EXIT_FAILURE); … … 849 849 850 850 { 851 p3MaskRow*object;852 853 object = p3MaskRowAlloc("a string" );851 camMaskRow *object; 852 853 object = camMaskRowAlloc("a string" ); 854 854 855 855 if (!object) { … … 1460 1460 1461 1461 { 1462 p4RunRow*object;1463 1464 object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z" );1465 1466 if (!object) { 1467 exit(EXIT_FAILURE); 1468 } 1469 1470 if (!object-> p4_id == -32) {1462 warpRunRow *object; 1463 1464 object = warpRunRowAlloc(-32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z" ); 1465 1466 if (!object) { 1467 exit(EXIT_FAILURE); 1468 } 1469 1470 if (!object->warp_id == -32) { 1471 1471 psFree(object); 1472 1472 exit(EXIT_FAILURE); … … 1496 1496 1497 1497 { 1498 p4InputExpRow*object;1499 1500 object = p4InputExpRowAlloc(-32, "a string", -32, true );1501 1502 if (!object) { 1503 exit(EXIT_FAILURE); 1504 } 1505 1506 if (!object-> p4_id == -32) {1507 psFree(object); 1508 exit(EXIT_FAILURE); 1509 } 1510 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 1511 psFree(object); 1512 exit(EXIT_FAILURE); 1513 } 1514 if (!object-> p3_version == -32) {1498 warpInputExpRow *object; 1499 1500 object = warpInputExpRowAlloc(-32, "a string", -32, true ); 1501 1502 if (!object) { 1503 exit(EXIT_FAILURE); 1504 } 1505 1506 if (!object->warp_id == -32) { 1507 psFree(object); 1508 exit(EXIT_FAILURE); 1509 } 1510 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 1511 psFree(object); 1512 exit(EXIT_FAILURE); 1513 } 1514 if (!object->cam_version == -32) { 1515 1515 psFree(object); 1516 1516 exit(EXIT_FAILURE); … … 1525 1525 1526 1526 { 1527 p4SkyCellMapRow *object;1528 1529 object = p4SkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string" );1530 1531 if (!object) { 1532 exit(EXIT_FAILURE); 1533 } 1534 1535 if (!object-> p4_id == -32) {1527 warpSkyCellMapRow *object; 1528 1529 object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string" ); 1530 1531 if (!object) { 1532 exit(EXIT_FAILURE); 1533 } 1534 1535 if (!object->warp_id == -32) { 1536 1536 psFree(object); 1537 1537 exit(EXIT_FAILURE); … … 1549 1549 exit(EXIT_FAILURE); 1550 1550 } 1551 if (!object-> p3_version == -32) {1551 if (!object->cam_version == -32) { 1552 1552 psFree(object); 1553 1553 exit(EXIT_FAILURE); … … 1562 1562 1563 1563 { 1564 p4SkyfileRow*object;1565 1566 object = p4SkyfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64 );1567 1568 if (!object) { 1569 exit(EXIT_FAILURE); 1570 } 1571 1572 if (!object-> p4_id == -32) {1564 warpSkyfileRow *object; 1565 1566 object = warpSkyfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64 ); 1567 1568 if (!object) { 1569 exit(EXIT_FAILURE); 1570 } 1571 1572 if (!object->warp_id == -32) { 1573 1573 psFree(object); 1574 1574 exit(EXIT_FAILURE); … … 1599 1599 1600 1600 { 1601 p5RunRow*object;1602 1603 object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" );1604 1605 if (!object) { 1606 exit(EXIT_FAILURE); 1607 } 1608 1609 if (!object-> p5_id == -32) {1601 diffRunRow *object; 1602 1603 object = diffRunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" ); 1604 1605 if (!object) { 1606 exit(EXIT_FAILURE); 1607 } 1608 1609 if (!object->diff_id == -32) { 1610 1610 psFree(object); 1611 1611 exit(EXIT_FAILURE); … … 1639 1639 1640 1640 { 1641 p5InputSkyfileRow *object;1642 1643 object = p5InputSkyfileRowAlloc(-32, -32, "a string", "a string", "a string", true );1644 1645 if (!object) { 1646 exit(EXIT_FAILURE); 1647 } 1648 1649 if (!object-> p5_id == -32) {1650 psFree(object); 1651 exit(EXIT_FAILURE); 1652 } 1653 if (!object-> p4_id == -32) {1641 diffInputSkyfileRow *object; 1642 1643 object = diffInputSkyfileRowAlloc(-32, -32, "a string", "a string", "a string", true ); 1644 1645 if (!object) { 1646 exit(EXIT_FAILURE); 1647 } 1648 1649 if (!object->diff_id == -32) { 1650 psFree(object); 1651 exit(EXIT_FAILURE); 1652 } 1653 if (!object->warp_id == -32) { 1654 1654 psFree(object); 1655 1655 exit(EXIT_FAILURE); … … 1676 1676 1677 1677 { 1678 p5DiffSkyfileRow*object;1679 1680 object = p5DiffSkyfileRowAlloc(-32, "a string", 64.64, 64.64 );1681 1682 if (!object) { 1683 exit(EXIT_FAILURE); 1684 } 1685 1686 if (!object-> p5_id == -32) {1678 diffSkyfileRow *object; 1679 1680 object = diffSkyfileRowAlloc(-32, "a string", 64.64, 64.64 ); 1681 1682 if (!object) { 1683 exit(EXIT_FAILURE); 1684 } 1685 1686 if (!object->diff_id == -32) { 1687 1687 psFree(object); 1688 1688 exit(EXIT_FAILURE); … … 1705 1705 1706 1706 { 1707 p6RunRow*object;1708 1709 object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" );1710 1711 if (!object) { 1712 exit(EXIT_FAILURE); 1713 } 1714 1715 if (!object-> p6_id == -32) {1707 stackRunRow *object; 1708 1709 object = stackRunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" ); 1710 1711 if (!object) { 1712 exit(EXIT_FAILURE); 1713 } 1714 1715 if (!object->stack_id == -32) { 1716 1716 psFree(object); 1717 1717 exit(EXIT_FAILURE); … … 1745 1745 1746 1746 { 1747 p6InputSkyfileRow *object;1748 1749 object = p6InputSkyfileRowAlloc(-32, -32 );1750 1751 if (!object) { 1752 exit(EXIT_FAILURE); 1753 } 1754 1755 if (!object-> p6_id == -32) {1756 psFree(object); 1757 exit(EXIT_FAILURE); 1758 } 1759 if (!object-> p4_id == -32) {1760 psFree(object); 1761 exit(EXIT_FAILURE); 1762 } 1763 1764 psFree(object); 1765 } 1766 1767 { 1768 p6SumSkyfileRow *object;1769 1770 object = p6SumSkyfileRowAlloc(-32, "a string", 64.64, 64.64 );1771 1772 if (!object) { 1773 exit(EXIT_FAILURE); 1774 } 1775 1776 if (!object-> p6_id == -32) {1747 stackInputSkyfileRow *object; 1748 1749 object = stackInputSkyfileRowAlloc(-32, -32 ); 1750 1751 if (!object) { 1752 exit(EXIT_FAILURE); 1753 } 1754 1755 if (!object->stack_id == -32) { 1756 psFree(object); 1757 exit(EXIT_FAILURE); 1758 } 1759 if (!object->warp_id == -32) { 1760 psFree(object); 1761 exit(EXIT_FAILURE); 1762 } 1763 1764 psFree(object); 1765 } 1766 1767 { 1768 stackSumSkyfileRow *object; 1769 1770 object = stackSumSkyfileRowAlloc(-32, "a string", 64.64, 64.64 ); 1771 1772 if (!object) { 1773 exit(EXIT_FAILURE); 1774 } 1775 1776 if (!object->stack_id == -32) { 1777 1777 psFree(object); 1778 1778 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
