Changeset 13621 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Jun 4, 2007, 2:30:45 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r12535 r13621 311 311 rawExpRow *object; 312 312 313 object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", 32.32, -16 );313 object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16 ); 314 314 315 315 if (!object) { … … 372 372 exit(EXIT_FAILURE); 373 373 } 374 if (!object->sat_pixel_frac == 32.32) { 375 psFree(object); 376 exit(EXIT_FAILURE); 377 } 374 378 if (!object->bg == 64.64) { 375 379 psFree(object); … … 400 404 exit(EXIT_FAILURE); 401 405 } 406 if (!object->user_1 == 64.64) { 407 psFree(object); 408 exit(EXIT_FAILURE); 409 } 410 if (!object->user_2 == 64.64) { 411 psFree(object); 412 exit(EXIT_FAILURE); 413 } 414 if (!object->user_3 == 64.64) { 415 psFree(object); 416 exit(EXIT_FAILURE); 417 } 418 if (!object->user_4 == 64.64) { 419 psFree(object); 420 exit(EXIT_FAILURE); 421 } 422 if (!object->user_5 == 64.64) { 423 psFree(object); 424 exit(EXIT_FAILURE); 425 } 402 426 if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) { 403 427 psFree(object); … … 419 443 rawImfileRow *object; 420 444 421 object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", -16 );445 object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", "0001-01-01T00:00:00Z", -16 ); 422 446 423 447 if (!object) { … … 465 489 exit(EXIT_FAILURE); 466 490 } 491 if (!object->sat_pixel_frac == 32.32) { 492 psFree(object); 493 exit(EXIT_FAILURE); 494 } 467 495 if (!object->bg == 64.64) { 468 496 psFree(object); … … 493 521 exit(EXIT_FAILURE); 494 522 } 523 if (!object->user_1 == 64.64) { 524 psFree(object); 525 exit(EXIT_FAILURE); 526 } 527 if (!object->user_2 == 64.64) { 528 psFree(object); 529 exit(EXIT_FAILURE); 530 } 531 if (!object->user_3 == 64.64) { 532 psFree(object); 533 exit(EXIT_FAILURE); 534 } 535 if (!object->user_4 == 64.64) { 536 psFree(object); 537 exit(EXIT_FAILURE); 538 } 539 if (!object->user_5 == 64.64) { 540 psFree(object); 541 exit(EXIT_FAILURE); 542 } 495 543 if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) { 496 544 psFree(object); … … 1336 1384 detProcessedImfileRow *object; 1337 1385 1338 object = detProcessedImfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 );1386 object = detProcessedImfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1339 1387 1340 1388 if (!object) { … … 1374 1422 exit(EXIT_FAILURE); 1375 1423 } 1424 if (!object->fringe_0 == 64.64) { 1425 psFree(object); 1426 exit(EXIT_FAILURE); 1427 } 1428 if (!object->fringe_1 == 64.64) { 1429 psFree(object); 1430 exit(EXIT_FAILURE); 1431 } 1432 if (!object->fringe_2 == 64.64) { 1433 psFree(object); 1434 exit(EXIT_FAILURE); 1435 } 1436 if (!object->user_1 == 64.64) { 1437 psFree(object); 1438 exit(EXIT_FAILURE); 1439 } 1440 if (!object->user_2 == 64.64) { 1441 psFree(object); 1442 exit(EXIT_FAILURE); 1443 } 1444 if (!object->user_3 == 64.64) { 1445 psFree(object); 1446 exit(EXIT_FAILURE); 1447 } 1448 if (!object->user_4 == 64.64) { 1449 psFree(object); 1450 exit(EXIT_FAILURE); 1451 } 1452 if (!object->user_5 == 64.64) { 1453 psFree(object); 1454 exit(EXIT_FAILURE); 1455 } 1376 1456 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1377 1457 psFree(object); … … 1389 1469 detProcessedExpRow *object; 1390 1470 1391 object = detProcessedExpRowAlloc(-64, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 );1471 object = detProcessedExpRowAlloc(-64, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1392 1472 1393 1473 if (!object) { … … 1419 1499 exit(EXIT_FAILURE); 1420 1500 } 1501 if (!object->fringe_0 == 64.64) { 1502 psFree(object); 1503 exit(EXIT_FAILURE); 1504 } 1505 if (!object->fringe_1 == 64.64) { 1506 psFree(object); 1507 exit(EXIT_FAILURE); 1508 } 1509 if (!object->fringe_2 == 64.64) { 1510 psFree(object); 1511 exit(EXIT_FAILURE); 1512 } 1513 if (!object->user_1 == 64.64) { 1514 psFree(object); 1515 exit(EXIT_FAILURE); 1516 } 1517 if (!object->user_2 == 64.64) { 1518 psFree(object); 1519 exit(EXIT_FAILURE); 1520 } 1521 if (!object->user_3 == 64.64) { 1522 psFree(object); 1523 exit(EXIT_FAILURE); 1524 } 1525 if (!object->user_4 == 64.64) { 1526 psFree(object); 1527 exit(EXIT_FAILURE); 1528 } 1529 if (!object->user_5 == 64.64) { 1530 psFree(object); 1531 exit(EXIT_FAILURE); 1532 } 1421 1533 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1422 1534 psFree(object); … … 1434 1546 detStackedImfileRow *object; 1435 1547 1436 object = detStackedImfileRowAlloc(-64, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, -16 );1548 object = detStackedImfileRowAlloc(-64, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, -16 ); 1437 1549 1438 1550 if (!object) { … … 1472 1584 exit(EXIT_FAILURE); 1473 1585 } 1586 if (!object->user_1 == 64.64) { 1587 psFree(object); 1588 exit(EXIT_FAILURE); 1589 } 1590 if (!object->user_2 == 64.64) { 1591 psFree(object); 1592 exit(EXIT_FAILURE); 1593 } 1594 if (!object->user_3 == 64.64) { 1595 psFree(object); 1596 exit(EXIT_FAILURE); 1597 } 1598 if (!object->user_4 == 64.64) { 1599 psFree(object); 1600 exit(EXIT_FAILURE); 1601 } 1602 if (!object->user_5 == 64.64) { 1603 psFree(object); 1604 exit(EXIT_FAILURE); 1605 } 1474 1606 if (!object->fault == -16) { 1475 1607 psFree(object); … … 1516 1648 detNormalizedImfileRow *object; 1517 1649 1518 object = detNormalizedImfileRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 );1650 object = detNormalizedImfileRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1519 1651 1520 1652 if (!object) { … … 1550 1682 exit(EXIT_FAILURE); 1551 1683 } 1684 if (!object->user_1 == 64.64) { 1685 psFree(object); 1686 exit(EXIT_FAILURE); 1687 } 1688 if (!object->user_2 == 64.64) { 1689 psFree(object); 1690 exit(EXIT_FAILURE); 1691 } 1692 if (!object->user_3 == 64.64) { 1693 psFree(object); 1694 exit(EXIT_FAILURE); 1695 } 1696 if (!object->user_4 == 64.64) { 1697 psFree(object); 1698 exit(EXIT_FAILURE); 1699 } 1700 if (!object->user_5 == 64.64) { 1701 psFree(object); 1702 exit(EXIT_FAILURE); 1703 } 1552 1704 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1553 1705 psFree(object); … … 1565 1717 detNormalizedExpRow *object; 1566 1718 1567 object = detNormalizedExpRowAlloc(-64, -32, "a string", 64.64, 64.64, 64.64, "a string", -16 );1719 object = detNormalizedExpRowAlloc(-64, -32, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1568 1720 1569 1721 if (!object) { … … 1595 1747 exit(EXIT_FAILURE); 1596 1748 } 1749 if (!object->user_1 == 64.64) { 1750 psFree(object); 1751 exit(EXIT_FAILURE); 1752 } 1753 if (!object->user_2 == 64.64) { 1754 psFree(object); 1755 exit(EXIT_FAILURE); 1756 } 1757 if (!object->user_3 == 64.64) { 1758 psFree(object); 1759 exit(EXIT_FAILURE); 1760 } 1761 if (!object->user_4 == 64.64) { 1762 psFree(object); 1763 exit(EXIT_FAILURE); 1764 } 1765 if (!object->user_5 == 64.64) { 1766 psFree(object); 1767 exit(EXIT_FAILURE); 1768 } 1597 1769 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1598 1770 psFree(object); … … 1610 1782 detResidImfileRow *object; 1611 1783 1612 object = detResidImfileRowAlloc(-64, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", -16 );1784 object = detResidImfileRowAlloc(-64, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1613 1785 1614 1786 if (!object) { … … 1652 1824 exit(EXIT_FAILURE); 1653 1825 } 1826 if (!object->bin_stdev == 64.64) { 1827 psFree(object); 1828 exit(EXIT_FAILURE); 1829 } 1830 if (!object->fringe_0 == 64.64) { 1831 psFree(object); 1832 exit(EXIT_FAILURE); 1833 } 1834 if (!object->fringe_1 == 64.64) { 1835 psFree(object); 1836 exit(EXIT_FAILURE); 1837 } 1838 if (!object->fringe_2 == 64.64) { 1839 psFree(object); 1840 exit(EXIT_FAILURE); 1841 } 1842 if (!object->user_1 == 64.64) { 1843 psFree(object); 1844 exit(EXIT_FAILURE); 1845 } 1846 if (!object->user_2 == 64.64) { 1847 psFree(object); 1848 exit(EXIT_FAILURE); 1849 } 1850 if (!object->user_3 == 64.64) { 1851 psFree(object); 1852 exit(EXIT_FAILURE); 1853 } 1854 if (!object->user_4 == 64.64) { 1855 psFree(object); 1856 exit(EXIT_FAILURE); 1857 } 1858 if (!object->user_5 == 64.64) { 1859 psFree(object); 1860 exit(EXIT_FAILURE); 1861 } 1654 1862 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1655 1863 psFree(object); … … 1667 1875 detResidExpRow *object; 1668 1876 1669 object = detResidExpRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", true, -16 );1877 object = detResidExpRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", true, -16 ); 1670 1878 1671 1879 if (!object) { … … 1698 1906 } 1699 1907 if (!object->bg_mean_stdev == 64.64) { 1908 psFree(object); 1909 exit(EXIT_FAILURE); 1910 } 1911 if (!object->bin_stdev == 64.64) { 1912 psFree(object); 1913 exit(EXIT_FAILURE); 1914 } 1915 if (!object->fringe_0 == 64.64) { 1916 psFree(object); 1917 exit(EXIT_FAILURE); 1918 } 1919 if (!object->fringe_1 == 64.64) { 1920 psFree(object); 1921 exit(EXIT_FAILURE); 1922 } 1923 if (!object->fringe_2 == 64.64) { 1924 psFree(object); 1925 exit(EXIT_FAILURE); 1926 } 1927 if (!object->user_1 == 64.64) { 1928 psFree(object); 1929 exit(EXIT_FAILURE); 1930 } 1931 if (!object->user_2 == 64.64) { 1932 psFree(object); 1933 exit(EXIT_FAILURE); 1934 } 1935 if (!object->user_3 == 64.64) { 1936 psFree(object); 1937 exit(EXIT_FAILURE); 1938 } 1939 if (!object->user_4 == 64.64) { 1940 psFree(object); 1941 exit(EXIT_FAILURE); 1942 } 1943 if (!object->user_5 == 64.64) { 1700 1944 psFree(object); 1701 1945 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
