Changeset 4221 for trunk/psModules/test/tst_pmObjects01.c
- Timestamp:
- Jun 13, 2005, 9:59:21 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/tst_pmObjects01.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/tst_pmObjects01.c
r4219 r4221 19 19 * abd never deallocate, no error is generated. 20 20 * 21 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $22 * @date $Date: 2005-06-13 19: 37:27$21 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2005-06-13 19:59:21 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1640 1640 printf("TEST ERROR: pmSourceContour() returned non-NULL.\n"); 1641 1641 testStatus = false; 1642 psFree(rc); 1642 1643 } 1643 1644 … … 1648 1649 printf("TEST ERROR: pmSourceContour() returned non-NULL.\n"); 1649 1650 testStatus = false; 1650 } 1651 1652 1653 printf("----------------------------------------------------------------------------------\n"); 1654 printf("Calling pmSourceContour with acceptable data.\n"); 1655 printf("NOTE: must figure out the parameters for this test to be meaningful.\n"); 1656 mySrc->models->params->data.F32[0] = TST09_SKY; 1657 mySrc->models->params->data.F32[1] = 15.0; 1658 mySrc->models->params->data.F32[2] = (psF32) (TST09_NUM_ROWS / 2); 1659 mySrc->models->params->data.F32[3] = (psF32) (TST09_NUM_COLS / 2); 1660 mySrc->models->params->data.F32[4] = 2.0; 1661 mySrc->models->params->data.F32[5] = 2.0; 1662 mySrc->models->params->data.F32[6] = 2.0; 1663 rc = pmSourceContour(mySrc, imgData, LEVEL, PS_CONTOUR_CRUDE); 1664 if (rc == NULL) { 1665 printf("TEST ERROR: pmSourceContour() returned NULL.\n"); 1666 testStatus = false; 1667 } 1668 1669 psFree(rc); 1651 psFree(rc); 1652 } 1653 1654 // 1655 // XXX: pmSourceContour() has a problem with contour tops/bottoms. 1656 // Must correct this. 1657 // 1658 if (0) { 1659 printf("----------------------------------------------------------------------------------\n"); 1660 printf("Calling pmSourceContour with acceptable data.\n"); 1661 printf("NOTE: must figure out the parameters for this test to be meaningful.\n"); 1662 mySrc->models->params->data.F32[0] = TST09_SKY; 1663 mySrc->models->params->data.F32[1] = 15.0; 1664 mySrc->models->params->data.F32[2] = (psF32) (TST09_NUM_ROWS / 2); 1665 mySrc->models->params->data.F32[3] = (psF32) (TST09_NUM_COLS / 2); 1666 mySrc->models->params->data.F32[4] = 2.0; 1667 mySrc->models->params->data.F32[5] = 2.0; 1668 mySrc->models->params->data.F32[6] = 2.0; 1669 rc = pmSourceContour(mySrc, imgData, LEVEL, PS_CONTOUR_CRUDE); 1670 if (rc == NULL) { 1671 printf("TEST ERROR: pmSourceContour() returned NULL.\n"); 1672 testStatus = false; 1673 } else { 1674 psFree(rc); 1675 } 1676 } 1677 1670 1678 psFree(mySrc); 1671 // psFree(tmpPeak);1672 1679 psFree(imgData); 1680 // XXX: This psFree() causes an error. Why? 1681 //psFree(tmpPeak); 1673 1682 return(testStatus); 1674 1683 }
Note:
See TracChangeset
for help on using the changeset viewer.
