Changeset 955 for trunk/psLib/test/sysUtils/tst_psMemory.c
- Timestamp:
- Jun 9, 2004, 11:26:34 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psMemory.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psMemory.c
r848 r955 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-06-0 4 02:08:42$8 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-09 21:26:34 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 70 70 const int size = 100; 71 71 int failed = 0; 72 int currentId = psMemGetId();73 72 74 73 psLogMsg(__func__,PS_LOG_INFO,"psAlloc shall allocate memory blocks writeable by caller.\n"); … … 90 89 } 91 90 92 psMemCheckLeaks(currentId,NULL,NULL); 93 psMemCheckCorruption(1); 91 psFree(mem); 94 92 95 93 return failed; … … 100 98 // create memory 101 99 int* mem; 102 int currentId = psMemGetId();103 100 int ref = 0; 104 101 … … 144 141 psFree(mem); 145 142 146 psMemCheckLeaks(currentId,NULL,NULL);147 psMemCheckCorruption(1);148 149 143 return 0; 150 144 } … … 154 148 int TPOutOfMemory(void) 155 149 { 156 int currentId = psMemGetId();157 150 int* mem1 = NULL; 158 151 int* mem2 = NULL; … … 182 175 psFree(mem4); 183 176 184 psMemCheckLeaks(currentId,NULL,NULL);185 psMemCheckCorruption(1);186 187 177 return 0; 188 178 } … … 191 181 int TPrealloc(void) 192 182 { 193 int currentId = psMemGetId();194 183 int* mem1; 195 184 int* mem2; … … 246 235 psFree(mem3); 247 236 248 psMemCheckLeaks(currentId,NULL,NULL);249 psMemCheckCorruption(1);250 251 237 return 0; 252 238 } … … 305 291 return 1; 306 292 } 307 308 psMemCheckLeaks(currentId,NULL,NULL);309 psMemCheckCorruption(1);310 293 311 294 return 0; … … 413 396 psFree(buffers[3]); 414 397 415 psMemCheckLeaks(currentId,NULL,NULL);416 psMemCheckCorruption(1);417 418 398 return 0; 419 399 }
Note:
See TracChangeset
for help on using the changeset viewer.
