Changeset 4308 for trunk/psLib/test/collections/tst_psArray.c
- Timestamp:
- Jun 17, 2005, 1:44:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psArray.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psArray.c
r3682 r4308 17 17 * @author Ross Harman, MHPCC 18 18 * 19 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $20 * @date $Date: 2005-0 4-07 20:27:41$19 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2005-06-17 23:44:22 $ 21 21 * 22 22 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 202 202 } 203 203 } 204 ps Free(mySt[0]);204 psMemDecrRefCounter(mySt[0]); 205 205 printFooter(stderr,"psArray","Remove valid item", true); 206 206 … … 235 235 psFree(mySt[i]); 236 236 } 237 if( psMemCheckLeaks(0, NULL, stderr, false) != 0) { 238 psError(PS_ERR_UNKNOWN,true,"Memory leaks detected."); 239 return 110; 240 } 241 psS32 nBad = psMemCheckCorruption(0); 242 if(nBad) { 243 fprintf(stderr,"ERROR: Found %d bad memory blocks\n", nBad); 244 return 111; 245 } 237 246 238 printFooter(stderr, "psArray" ,"Free void pointer array", true); 247 239 … … 361 353 } 362 354 363 psFree(data);364 365 355 subtest++; 366 356 if (arr->nalloc != nalloc) { … … 386 376 return subtest; 387 377 } 378 379 psFree(data); 388 380 } 389 381 … … 391 383 data = psAlloc(sizeof(float)); 392 384 arr = psArrayAdd(arr, delta, data); 393 psFree(data);394 385 395 386 // make sure the array was expanded … … 418 409 } 419 410 411 psFree(data); 412 420 413 // make the array full again (operation tested already) 421 414 while (arr->n < arr->nalloc) {
Note:
See TracChangeset
for help on using the changeset viewer.
