Changeset 946
- Timestamp:
- Jun 9, 2004, 9:27:09 AM (22 years ago)
- Location:
- trunk/psLib/test
- Files:
-
- 2 edited
-
collections/tst_psList.c (modified) (8 diffs)
-
image/tst_psImage.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psList.c
r931 r946 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-06-0 8 20:08:51$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-09 19:27:09 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 108 108 psListFree(list,PS_FREE); 109 109 110 psMemCheckLeaks(currentId,NULL,NULL); 110 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 111 psError(__func__,"Memory Leaks Detected"); 112 return 64; 113 } 111 114 psMemCheckCorruption(1); 112 115 … … 253 256 psListFree(list, PS_FREE); 254 257 255 psMemCheckLeaks(currentId,NULL,NULL); 258 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 259 psError(__func__,"Memory Leaks Detected"); 260 return 64; 261 } 256 262 psMemCheckCorruption(1); 257 263 … … 378 384 psListFree(list,PS_FREE); 379 385 380 psMemCheckLeaks(currentId,NULL,NULL); 386 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 387 psError(__func__,"Memory Leaks Detected"); 388 return 64; 389 } 381 390 psMemCheckCorruption(1); 382 391 … … 615 624 psListFree(list,PS_FREE); 616 625 617 psMemCheckLeaks(currentId,NULL,NULL); 626 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 627 psError(__func__,"Memory Leaks Detected"); 628 return 64; 629 } 618 630 psMemCheckCorruption(1); 619 631 … … 674 686 psListFree(list,PS_FREE); 675 687 676 psMemCheckLeaks(currentId,NULL,NULL); 688 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 689 psError(__func__,"Memory Leaks Detected"); 690 return 64; 691 } 677 692 psMemCheckCorruption(1); 678 693 … … 751 766 psListFree(list,PS_FREE); 752 767 753 psMemCheckLeaks(currentId,NULL,NULL); 768 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 769 psError(__func__,"Memory Leaks Detected"); 770 return 64; 771 } 754 772 psMemCheckCorruption(1); 755 773 … … 882 900 } 883 901 884 psMemCheckLeaks(currentId,NULL,NULL); 902 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 903 psError(__func__,"Memory Leaks Detected"); 904 return 64; 905 } 885 906 psMemCheckCorruption(1); 886 907 -
trunk/psLib/test/image/tst_psImage.c
r939 r946 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-06-09 00:28:09 $8 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-09 19:27:09 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 224 224 // children is freed. 225 225 psImageFree(image); 226 psMemCheckLeaks(currentId,NULL,NULL); 226 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 227 psError(__func__,"Memory Leaks Detected"); 228 return 64; 229 } 227 230 psMemCheckCorruption(1); 228 231 … … 232 235 // #548: Verify program execution doesn't stop, if the input psImage structure pointer is null. 233 236 psImageFree(NULL); 234 psMemCheckLeaks(currentId,NULL,NULL); 237 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 238 psError(__func__,"Memory Leaks Detected"); 239 return 64; 240 } 235 241 psMemCheckCorruption(1); 236 242 … … 243 249 psImageFree(image); 244 250 245 psMemCheckLeaks(currentId,NULL,NULL); 251 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 252 psError(__func__,"Memory Leaks Detected"); 253 return 64; 254 } 246 255 psMemCheckCorruption(1); 247 256 … … 512 521 // Verify no memory leaks or corruption are detected for a psImage structure 513 522 // Verify no memory leaks or corruption are detected for a psImage structure 514 psMemCheckLeaks(currentId,NULL,NULL); 523 if (psMemCheckLeaks(currentId,NULL,NULL) != 0) { 524 psError(__func__,"Memory Leaks Detected"); 525 return 64; 526 } 515 527 psMemCheckCorruption(1); 516 528
Note:
See TracChangeset
for help on using the changeset viewer.
