Changeset 1073 for trunk/psLib/test/dataManip
- Timestamp:
- Jun 23, 2004, 1:00:17 PM (22 years ago)
- Location:
- trunk/psLib/test/dataManip
- Files:
-
- 22 edited
-
tst_psFunc00.c (modified) (9 diffs)
-
tst_psFunc01.c (modified) (1 diff)
-
tst_psHist00.c (modified) (1 diff)
-
tst_psHist01.c (modified) (1 diff)
-
tst_psHist02.c (modified) (6 diffs)
-
tst_psMatrix01.c (modified) (2 diffs)
-
tst_psMatrix03.c (modified) (2 diffs)
-
tst_psMatrix04.c (modified) (2 diffs)
-
tst_psMatrix05.c (modified) (2 diffs)
-
tst_psMatrix06.c (modified) (2 diffs)
-
tst_psMatrix07.c (modified) (2 diffs)
-
tst_psStats00.c (modified) (1 diff)
-
tst_psStats01.c (modified) (1 diff)
-
tst_psStats02.c (modified) (1 diff)
-
tst_psStats03.c (modified) (1 diff)
-
tst_psStats05.c (modified) (2 diffs)
-
tst_psStats06.c (modified) (1 diff)
-
tst_psStats07.c (modified) (1 diff)
-
tst_psStats08.c (modified) (1 diff)
-
tst_psStats09.c (modified) (1 diff)
-
tst_psVectorFFT.c (modified) (6 diffs)
-
verified/tst_psStats05.stdout (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psFunc00.c
r887 r1073 53 53 psEvalPolynomial1D(MISC_X_VALUE, my1DPoly)); 54 54 55 ps Polynomial1DFree(my1DPoly);55 psFree(my1DPoly); 56 56 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 57 57 if (0 != memLeaks) { … … 83 83 psEvalPolynomial2D(MISC_X_VALUE, MISC_X_VALUE, my2DPoly)); 84 84 85 ps Polynomial2DFree(my2DPoly);85 psFree(my2DPoly); 86 86 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 87 87 if (0 != memLeaks) { … … 114 114 psEvalPolynomial3D(MISC_X_VALUE, MISC_X_VALUE, MISC_X_VALUE, my3DPoly)); 115 115 116 ps Polynomial3DFree(my3DPoly);116 psFree(my3DPoly); 117 117 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 118 118 if (0 != memLeaks) { … … 148 148 psEvalPolynomial4D(MISC_X_VALUE, MISC_X_VALUE, MISC_X_VALUE, MISC_X_VALUE, my4DPoly)); 149 149 150 ps Polynomial4DFree(my4DPoly);150 psFree(my4DPoly); 151 151 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 152 152 if (0 != memLeaks) { … … 178 178 psDEvalPolynomial1D(MISC_X_VALUE, my1DPolyD)); 179 179 180 ps DPolynomial1DFree(my1DPolyD);180 psFree(my1DPolyD); 181 181 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 182 182 if (0 != memLeaks) { … … 187 187 "Allocate/Deallocate the psDPolynomial1D structure.", 188 188 testStatus); 189 190 191 192 193 189 194 190 printPositiveTestHeader(stdout, … … 208 204 psDEvalPolynomial2D(MISC_X_VALUE, MISC_X_VALUE, my2DPolyD)); 209 205 210 ps DPolynomial2DFree(my2DPolyD);206 psFree(my2DPolyD); 211 207 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 212 208 if (0 != memLeaks) { … … 239 235 psDEvalPolynomial3D(MISC_X_VALUE, MISC_X_VALUE, MISC_X_VALUE, my3DPolyD)); 240 236 241 ps DPolynomial3DFree(my3DPolyD);237 psFree(my3DPolyD); 242 238 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 243 239 if (0 != memLeaks) { … … 273 269 psDEvalPolynomial4D(MISC_X_VALUE, MISC_X_VALUE, MISC_X_VALUE, MISC_X_VALUE, my4DPolyD)); 274 270 275 ps DPolynomial4DFree(my4DPolyD);271 psFree(my4DPolyD); 276 272 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 277 273 if (0 != memLeaks) { -
trunk/psLib/test/dataManip/tst_psFunc01.c
r887 r1073 56 56 } 57 57 58 ps VectorFree(myGaussData);58 psFree(myGaussData); 59 59 60 60 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psHist00.c
r893 r1073 79 79 80 80 psMemCheckCorruption(1); 81 ps HistogramFree(myHist);81 psFree(myHist); 82 82 psMemCheckCorruption(1); 83 83 -
trunk/psLib/test/dataManip/tst_psHist01.c
r893 r1073 84 84 } 85 85 psMemCheckCorruption(1); 86 ps HistogramFree(myHist);86 psFree(myHist); 87 87 psMemCheckCorruption(1); 88 ps VectorFree(myBounds);88 psFree(myBounds); 89 89 90 90 printFooter(stdout, -
trunk/psLib/test/dataManip/tst_psHist02.c
r893 r1073 75 75 } 76 76 psMemCheckCorruption(1); 77 ps HistogramFree(myHist);77 psFree(myHist); 78 78 psMemCheckCorruption(1); 79 79 … … 100 100 } 101 101 psMemCheckCorruption(1); 102 ps HistogramFree(myHist);102 psFree(myHist); 103 103 psMemCheckCorruption(1); 104 104 … … 108 108 testStatus); 109 109 } 110 ps VectorFree(myMask);110 psFree(myMask); 111 111 112 112 printPositiveTestHeader(stdout, … … 122 122 testStatus = false; 123 123 } 124 ps VectorFree(myData);124 psFree(myData); 125 125 126 126 … … 135 135 testStatus = false; 136 136 } 137 ps HistogramFree(myHist);137 psFree(myHist); 138 138 139 139 … … 152 152 testStatus = false; 153 153 } 154 ps HistogramFree(myHist);155 ps VectorFree(myData);154 psFree(myHist); 155 psFree(myData); 156 156 */ 157 157 printFooter(stdout, -
trunk/psLib/test/dataManip/tst_psMatrix01.c
r899 r1073 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-06- 07 20:47:52$13 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-06-23 23:00:17 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 75 75 // Test D - Free images and check for leaks 76 76 printPositiveTestHeader(stdout, "psMatrix", "Free images and check for leaks"); 77 ps ImageFree(inImage);78 ps ImageFree(outImage);79 ps ImageFree(outImageNull);77 psFree(inImage); 78 psFree(outImage); 79 psFree(outImageNull); 80 80 psMemCheckLeaks(0, NULL, stdout); 81 81 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/dataManip/tst_psMatrix03.c
r897 r1073 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $17 * @date $Date: 2004-06- 07 20:25:03$16 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2004-06-23 23:00:17 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 104 104 // Test D - Free input and output images and vectors 105 105 printPositiveTestHeader(stdout, "psMatrix", "Free input and output images and vectors"); 106 ps ImageFree(inImage);107 ps ImageFree(luImage);108 ps VectorFree(perm);109 ps VectorFree(outVector);110 ps VectorFree(inVector);106 psFree(inImage); 107 psFree(luImage); 108 psFree(perm); 109 psFree(outVector); 110 psFree(inVector); 111 111 psMemCheckLeaks(0, NULL, stdout); 112 112 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/dataManip/tst_psMatrix04.c
r897 r1073 13 13 * @author Ross Harman, MHPCC 14 14 * 15 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $16 * @date $Date: 2004-06- 07 20:25:03$15 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-06-23 23:00:17 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 82 82 // Test D - Free input and output images 83 83 printPositiveTestHeader(stdout, "psMatrix", "Free input and output images"); 84 ps ImageFree(outImage);85 ps ImageFree(inImage);84 psFree(outImage); 85 psFree(inImage); 86 86 psFree(det2); 87 87 psMemCheckLeaks(0, NULL, stdout); -
trunk/psLib/test/dataManip/tst_psMatrix05.c
r798 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 5-28 02:52:23$12 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:17 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 65 65 // Test C - Free input and output images 66 66 printPositiveTestHeader(stdout, "psMatrix", "Free input and output images"); 67 ps ImageFree(outImage);68 ps ImageFree(inImage1);69 ps ImageFree(inImage2);67 psFree(outImage); 68 psFree(inImage1); 69 psFree(inImage2); 70 70 psMemCheckLeaks(0, NULL, stdout); 71 71 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/dataManip/tst_psMatrix06.c
r798 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 5-28 02:52:23$12 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:17 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 74 74 // Test C - Free input and output images 75 75 printPositiveTestHeader(stdout, "psMatrix", "Free input and output images"); 76 ps ImageFree(outImage);77 ps ImageFree(inImage);76 psFree(outImage); 77 psFree(inImage); 78 78 psMemCheckLeaks(0, NULL, stdout); 79 79 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/dataManip/tst_psMatrix07.c
r908 r1073 16 16 * @author Ross Harman, MHPCC 17 17 * 18 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $19 * @date $Date: 2004-06- 08 01:56:35$18 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 19 * @date $Date: 2004-06-23 23:00:17 $ 20 20 * 21 21 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 157 157 // Test I - Free input and output images 158 158 printPositiveTestHeader(stdout, "psMatrix", "Free input and output images and vectors"); 159 ps ImageFree(m1);160 ps VectorFree(v1);161 ps ImageFree(m2);162 ps VectorFree(v2);163 ps ImageFree(m3);164 ps ImageFree(m4);165 ps ImageFree(badImage);159 psFree(m1); 160 psFree(v1); 161 psFree(m2); 162 psFree(v2); 163 psFree(m3); 164 psFree(m4); 165 psFree(badImage); 166 166 psMemCheckLeaks(0, NULL, stdout); 167 167 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/dataManip/tst_psStats00.c
r893 r1073 186 186 "psStats(): deallocating memory"); 187 187 188 ps StatsFree(myStats);189 ps VectorFree(myVector);190 ps VectorFree(maskVector);188 psFree(myStats); 189 psFree(myVector); 190 psFree(maskVector); 191 191 192 192 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psStats01.c
r887 r1073 107 107 "psStats(): deallocating memory"); 108 108 109 ps StatsFree(myStats);110 ps VectorFree(myVector);111 ps VectorFree(maskVector);109 psFree(myStats); 110 psFree(myVector); 111 psFree(maskVector); 112 112 113 113 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psStats02.c
r887 r1073 107 107 "psStats(): deallocating memory"); 108 108 109 ps StatsFree(myStats);110 ps VectorFree(myVector);111 ps VectorFree(maskVector);109 psFree(myStats); 110 psFree(myVector); 111 psFree(maskVector); 112 112 113 113 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psStats03.c
r887 r1073 102 102 "psStats(): deallocating memory"); 103 103 104 ps StatsFree(myStats);105 ps VectorFree(myVector);106 ps VectorFree(maskVector);104 psFree(myStats); 105 psFree(myVector); 106 psFree(maskVector); 107 107 108 108 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psStats05.c
r893 r1073 59 59 "psStats functions", 60 60 "Deallocate the psStats structure."); 61 ps StatsFree(myStats);61 psFree(myStats); 62 62 63 63 psMemCheckCorruption(1); … … 73 73 testStatus); 74 74 75 76 77 printPositiveTestHeader(stdout,78 "psStats functions",79 "Deallocate NULL psStats structure.");80 psStatsFree(NULL);81 printFooter(stdout,82 "psStats functions",83 "Deallocate NULL psStats structure.",84 testStatus);85 86 87 75 return (!testStatus); 88 76 } -
trunk/psLib/test/dataManip/tst_psStats06.c
r887 r1073 110 110 "psStats(): deallocating memory"); 111 111 112 ps StatsFree(myStats);113 ps VectorFree(myVector);114 ps VectorFree(maskVector);112 psFree(myStats); 113 psFree(myVector); 114 psFree(maskVector); 115 115 116 116 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psStats07.c
r1026 r1073 395 395 "psStats(): deallocating memory"); 396 396 397 ps StatsFree(myStats);398 ps VectorFree(myVector);399 ps VectorFree(maskVector);397 psFree(myStats); 398 psFree(myVector); 399 psFree(maskVector); 400 400 401 401 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psStats08.c
r887 r1073 154 154 "psStats(): deallocating memory"); 155 155 156 ps StatsFree(myStats);157 ps VectorFree(myVector);158 ps VectorFree(maskVector);156 psFree(myStats); 157 psFree(myVector); 158 psFree(maskVector); 159 159 160 160 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psStats09.c
r887 r1073 128 128 "psStats(): deallocating memory"); 129 129 130 ps StatsFree(myStats);131 ps VectorFree(myGaussData);132 ps VectorFree(maskVector);130 psFree(myStats); 131 psFree(myGaussData); 132 psFree(maskVector); 133 133 134 134 psMemCheckCorruption(1); -
trunk/psLib/test/dataManip/tst_psVectorFFT.c
r1009 r1073 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-06- 12 01:34:10$8 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-23 23:00:17 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 112 112 } 113 113 114 ps VectorFree(vec);115 ps VectorFree(vec2);116 ps VectorFree(vec3);114 psFree(vec); 115 psFree(vec2); 116 psFree(vec3); 117 117 118 118 return 0; … … 177 177 } 178 178 179 ps VectorFree(vec);180 ps VectorFree(vec2);181 ps VectorFree(vec3);179 psFree(vec); 180 psFree(vec2); 181 psFree(vec3); 182 182 183 183 return 0; … … 262 262 } 263 263 264 ps VectorFree(vec);265 ps VectorFree(vec2);266 ps VectorFree(vec3);264 psFree(vec); 265 psFree(vec2); 266 psFree(vec3); 267 267 268 268 return 0; … … 307 307 } 308 308 309 ps VectorFree(vec);310 ps VectorFree(vec2);309 psFree(vec); 310 psFree(vec2); 311 311 312 312 return 0; … … 374 374 }; 375 375 376 ps VectorFree(vec);377 ps VectorFree(vec2);378 379 return 0; 380 } 376 psFree(vec); 377 psFree(vec2); 378 379 return 0; 380 } -
trunk/psLib/test/dataManip/verified/tst_psStats05.stdout
r1034 r1073 17 17 ---> TESTPOINT PASSED (psStats functions{Deallocate the psStats structure.} | tst_psStats05.c) 18 18 19 /***************************** TESTPOINT ******************************************\20 * TestFile: tst_psStats05.c *21 * TestPoint: psStats functions{Deallocate NULL psStats structure.} *22 * TestType: Positive *23 \**********************************************************************************/24 25 26 ---> TESTPOINT PASSED (psStats functions{Deallocate NULL psStats structure.} | tst_psStats05.c)27
Note:
See TracChangeset
for help on using the changeset viewer.
