Changeset 1073 for trunk/psLib/test/collections
- Timestamp:
- Jun 23, 2004, 1:00:17 PM (22 years ago)
- Location:
- trunk/psLib/test/collections
- Files:
-
- 36 edited
-
builddir/tst_psBitSet_01.d (modified) (1 diff)
-
builddir/tst_psBitSet_02.d (modified) (1 diff)
-
builddir/tst_psBitSet_03.d (modified) (1 diff)
-
builddir/tst_psBitSet_04.d (modified) (1 diff)
-
builddir/tst_psBitSet_05.d (modified) (1 diff)
-
builddir/tst_psBitSet_06.d (modified) (1 diff)
-
builddir/tst_psImage.d (modified) (1 diff)
-
builddir/tst_psList.d (modified) (1 diff)
-
builddir/tst_psSort_01.d (modified) (1 diff)
-
builddir/tst_psSort_02.d (modified) (1 diff)
-
builddir/tst_psSort_03.d (modified) (1 diff)
-
builddir/tst_psSort_04.d (modified) (1 diff)
-
builddir/tst_psVector_01.d (modified) (1 diff)
-
builddir/tst_psVector_02.d (modified) (1 diff)
-
builddir/tst_psVector_03.d (modified) (1 diff)
-
tst_psBitSet_01.c (modified) (2 diffs)
-
tst_psBitSet_02.c (modified) (2 diffs)
-
tst_psBitSet_03.c (modified) (2 diffs)
-
tst_psBitSet_04.c (modified) (2 diffs)
-
tst_psBitSet_05.c (modified) (2 diffs)
-
tst_psBitSet_06.c (modified) (2 diffs)
-
tst_psList.c (modified) (13 diffs)
-
tst_psSort_01.c (modified) (2 diffs)
-
tst_psSort_02.c (modified) (2 diffs)
-
tst_psSort_03.c (modified) (2 diffs)
-
tst_psSort_04.c (modified) (2 diffs)
-
tst_psVector_01.c (modified) (2 diffs)
-
tst_psVector_02.c (modified) (2 diffs)
-
tst_psVector_03.c (modified) (6 diffs)
-
verified/tst_psBitSet_01.stderr (modified) (1 diff)
-
verified/tst_psBitSet_05.stderr (modified) (1 diff)
-
verified/tst_psBitSet_06.stderr (modified) (1 diff)
-
verified/tst_psBitSet_06.stdout (modified) (1 diff)
-
verified/tst_psList.stderr (modified) (2 diffs)
-
verified/tst_psSort_03.stderr (modified) (1 diff)
-
verified/tst_psSort_04.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/builddir/tst_psBitSet_01.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psBitSet_02.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psBitSet_03.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psBitSet_04.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psBitSet_05.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psBitSet_06.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psImage.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h -
trunk/psLib/test/collections/builddir/tst_psList.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h -
trunk/psLib/test/collections/builddir/tst_psSort_01.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psSort_02.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psSort_03.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psSort_04.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psVector_01.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psVector_02.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/builddir/tst_psVector_03.d
r1004 r1073 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/psVector.h ../../include/psHash.h ../../include/psImage.h \ 5 ../../include/psVector.h ../../include/psHash.h \ 6 ../../include/psScalar.h ../../include/psImage.h \ 6 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 7 ../../include/psMatrix.h ../../include/ps FFT.h \8 ../../include/ps ImageIO.h ../../include/psTest.h8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ 9 ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h -
trunk/psLib/test/collections/tst_psBitSet_01.c
r965 r1073 17 17 * @author Ross Harman, MHPCC 18 18 * 19 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $20 * @date $Date: 2004-06- 10 00:28:23$19 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2004-06-23 23:00:15 $ 21 21 * 22 22 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 121 121 // Test J - Free psBitSet 122 122 printPositiveTestHeader(stdout, "psBitSet", "Free psBitSet"); 123 ps BitSetFree(bs);123 psFree(bs); 124 124 psMemCheckLeaks(0, NULL, stdout); 125 125 psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psBitSet_02.c
r993 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 11 01:39:30$12 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 63 63 // Test C - Free psBitSets 64 64 printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets"); 65 ps BitSetFree(bs1);66 ps BitSetFree(bs2);67 ps BitSetFree(outbs);65 psFree(bs1); 66 psFree(bs2); 67 psFree(outbs); 68 68 psMemCheckLeaks(0, NULL, stdout); 69 69 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psBitSet_03.c
r994 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 11 01:40:45 $12 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 63 63 // Test C - Free psBitSets 64 64 printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets"); 65 ps BitSetFree(bs1);66 ps BitSetFree(bs2);67 ps BitSetFree(outbs);65 psFree(bs1); 66 psFree(bs2); 67 psFree(outbs); 68 68 psMemCheckLeaks(0, NULL, stdout); 69 69 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psBitSet_04.c
r995 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 11 01:46:02$12 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 63 63 // Test C - Free psBitSets 64 64 printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets"); 65 ps BitSetFree(bs1);66 ps BitSetFree(bs2);67 ps BitSetFree(outbs);65 psFree(bs1); 66 psFree(bs2); 67 psFree(outbs); 68 68 psMemCheckLeaks(0, NULL, stdout); 69 69 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psBitSet_05.c
r965 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 10 00:28:36$12 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 48 48 // Test C - Free psBitSets 49 49 printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets"); 50 ps BitSetFree(bs1);51 ps BitSetFree(bs2);52 ps BitSetFree(outbs);50 psFree(bs1); 51 psFree(bs2); 52 psFree(outbs); 53 53 psMemCheckLeaks(0, NULL, stdout); 54 54 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psBitSet_06.c
r965 r1073 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-06- 10 00:28:43$14 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-06-23 23:00:15 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 55 55 printFooter(stdout, "psBitSet", "Create negative size bitset", true); 56 56 57 58 // Test D - Attempt to free null BitSet59 printNegativeTestHeader(stdout,"psBitSet", "Attempt to free null BitSet",60 "Null psBitSet for inBitSet argument", 0);61 psBitSetFree(NULL);62 printFooter(stdout, "psBitSet", "Attempt to free null BitSet", true);63 64 65 57 // Test E - Free psBitSets 66 58 printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets"); 67 ps BitSetFree(bs1);68 ps BitSetFree(bs2);69 ps BitSetFree(outbs);59 psFree(bs1); 60 psFree(bs2); 61 psFree(outbs); 70 62 psMemCheckLeaks(0, NULL, stdout); 71 63 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psList.c
r1033 r1073 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-06- 14 23:03:43$8 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-23 23:00:15 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 78 78 } 79 79 80 ps ListFree(list,NULL);80 psFree(list); 81 81 82 82 list = psListAlloc(data); … … 108 108 109 109 110 psListFree(list,PS_FREE); 110 psFree(list); 111 112 psFree(data); 111 113 112 114 return 0; … … 283 285 } 284 286 285 ps ListFree(list, PS_FREE);287 psFree(list); 286 288 287 289 return 0; … … 339 341 *data = 0; 340 342 list = psListAlloc(data); 343 psFree(data); 341 344 342 345 data = psAlloc(sizeof(int)); 343 346 *data = 1; 344 347 list = psListAdd(list,data,PS_LIST_TAIL); 348 psFree(data); 345 349 346 350 data = psAlloc(sizeof(int)); 347 351 *data = 2; 348 352 list = psListAdd(list,data,PS_LIST_TAIL); 353 psFree(data); 349 354 350 355 data = psAlloc(sizeof(int)); 351 356 *data = 3; 352 357 list = psListAdd(list,data,PS_LIST_TAIL); 358 psFree(data); 353 359 354 360 // 2. which>0 and which<list.n. … … 404 410 } 405 411 406 ps ListFree(list,PS_FREE);412 psFree(list); 407 413 408 414 return 0; … … 637 643 } 638 644 639 ps ListFree(list,PS_FREE);645 psFree(list); 640 646 641 647 return 0; … … 691 697 } 692 698 693 ps VectorFree(vec);694 ps ListFree(list,PS_FREE);699 psFree(vec); 700 psFree(list); 695 701 696 702 // test vector -> dlist … … 729 735 } 730 736 731 ps VectorFree(vec);732 ps ListFree(list,PS_FREE);737 psFree(vec); 738 psFree(list); 733 739 734 740 // now, make sure if input vector/list is NULL, output is NULL … … 755 761 return 1; 756 762 } 757 ps VectorFree(vec);758 ps ListFree(list,PS_FREE);763 psFree(vec); 764 psFree(list); 759 765 760 766 list = psListAlloc(NULL); … … 765 771 return 1; 766 772 } 767 ps VectorFree(vec);768 ps ListFree(list,PS_FREE);773 psFree(vec); 774 psFree(list); 769 775 770 776 return 0; … … 895 901 } 896 902 897 ps ListFree(list,PS_FREE);903 psFree(list); 898 904 899 905 return 0; … … 938 944 */ 939 945 940 ps ListFree(list,NULL);946 psFree(list); 941 947 942 948 /* -
trunk/psLib/test/collections/tst_psSort_01.c
r988 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 10 23:14:22$12 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 71 71 // Test D - Free float vectors 72 72 printPositiveTestHeader(stdout,"psSort", "Free float vectors"); 73 ps VectorFree(in);74 ps VectorFree(out);73 psFree(in); 74 psFree(out); 75 75 psMemCheckLeaks(0, NULL, stdout); 76 76 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psSort_02.c
r831 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 02 23:29:29$12 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 55 55 // Test C - Free vectors 56 56 printPositiveTestHeader(stdout,"psSort", "Free vectors"); 57 ps VectorFree(in);58 ps VectorFree(out);57 psFree(in); 58 psFree(out); 59 59 psMemCheckLeaks(0, NULL, stdout); 60 60 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psSort_03.c
r831 r1073 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 02 23:29:29$12 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-23 23:00:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 49 49 // Test C - Free float vectors 50 50 printPositiveTestHeader(stdout,"psSort", "Free float vectors"); 51 ps VectorFree(in);52 ps VectorFree(out);51 psFree(in); 52 psFree(out); 53 53 psMemCheckLeaks(0, NULL, stdout); 54 54 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psSort_04.c
r988 r1073 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-06- 10 23:14:22$11 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-23 23:00:15 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 33 33 // Test B - Free vectors 34 34 printPositiveTestHeader(stdout, "psSort", "Free vectors"); 35 ps VectorFree(goodOut);35 psFree(goodOut); 36 36 psMemCheckLeaks(0, NULL, stdout); 37 37 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psVector_01.c
r972 r1073 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $17 * @date $Date: 2004-06- 10 01:50:43$16 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2004-06-23 23:00:15 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 79 79 // Test E - Free S32 vector 80 80 printPositiveTestHeader(stdout, "psVector", "Free S32 vector"); 81 ps VectorFree(psVec);81 psFree(psVec); 82 82 psMemCheckLeaks(0, NULL, stdout); 83 83 int nBad = psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psVector_02.c
r831 r1073 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-06- 02 23:29:29$14 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-06-23 23:00:15 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 102 102 // Test E - Free void pointer vector 103 103 printPositiveTestHeader(stdout, "psVector", "Free void pointer vector"); 104 psVectorElementFree(psVec , NULL);105 ps VectorFree(psVec);104 psVectorElementFree(psVec); 105 psFree(psVec); 106 106 for(int i = 0; i < 10; i++) { 107 107 psFree(mySt[i]); -
trunk/psLib/test/collections/tst_psVector_03.c
r867 r1073 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-06- 04 19:51:49$14 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-06-23 23:00:15 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 28 28 } 29 29 testStruct; 30 31 static void freeData(void *data)32 {33 psFree(data);34 }35 36 30 37 31 int main(int argc, … … 59 53 psVec->data.PTR[i] = ts; 60 54 psVec->n++; 61 psMemIncrRefCounter(ts);62 55 } 63 56 … … 82 75 psVec->data.PTR[i] = ts; 83 76 psVec->n++; 84 psMemIncrRefCounter(ts);85 77 } 86 78 for(int i = 0; i < 10; i++) { … … 92 84 printFooter(stdout, "psVector", "Reallocate void pointer vector bigger", true); 93 85 94 95 86 // Test D - Reallocate void pointer vector smaller 96 87 printPositiveTestHeader(stdout,"psVector","Reallocate void pointer vector smaller"); 97 psVec = psVectorRealloc(3, psVec); 88 psVec = psVectorRealloc(3, psVec); // this also frees the elements trimmed 98 89 for(int i = 0; i < 3; i++) { 99 90 testStruct *ts = (testStruct*)psVec->data.PTR[i]; … … 109 100 110 101 // Free void pointer array struct and its 3 internal elements 111 psVectorElementFree(psVec, freeData); 112 psVectorFree(psVec); 102 psFree(psVec); 113 103 114 // Free 7 elements manually that were lost after array was reallocated smaller 115 for(int i = 3; i < 10; i++) { 116 psFree(mySt[i]); 104 if (psMemCheckLeaks(0, NULL, stdout) != 0) { 105 psAbort(__func__,"memory leaks"); 117 106 } 118 psMemCheckLeaks(0, NULL, stdout);119 107 int nBad = psMemCheckCorruption(0); 120 108 if(nBad) { -
trunk/psLib/test/collections/verified/tst_psBitSet_01.stderr
r1018 r1073 1 <DATE> <TIME> <HOST> |E| psBitSetTest| : Line 14 0- Bit position too small: -42 <DATE> <TIME> <HOST> |E| psBitSetTest| : Line 14 3- Bit position too large: 2003 <DATE> <TIME> <HOST> |E| psBitSetTest| : Line 13 7- Null psBitSet for inBitSet argument4 <DATE> <TIME> <HOST> |E| psBitSetSet| : Line 1 18- Bit position too small: -45 <DATE> <TIME> <HOST> |E| psBitSetSet| : Line 12 1- Bit position too large: 2006 <DATE> <TIME> <HOST> |E| psBitSetSet| : Line 11 5- Null psBitSet for inBitSet argument1 <DATE> <TIME> <HOST> |E| psBitSetTest| : Line 142 - Bit position too small: -4 2 <DATE> <TIME> <HOST> |E| psBitSetTest| : Line 145 - Bit position too large: 200 3 <DATE> <TIME> <HOST> |E| psBitSetTest| : Line 139 - Null psBitSet for inBitSet argument 4 <DATE> <TIME> <HOST> |E| psBitSetSet| : Line 120 - Bit position too small: -4 5 <DATE> <TIME> <HOST> |E| psBitSetSet| : Line 123 - Bit position too large: 200 6 <DATE> <TIME> <HOST> |E| psBitSetSet| : Line 117 - Null psBitSet for inBitSet argument -
trunk/psLib/test/collections/verified/tst_psBitSet_05.stderr
r1018 r1073 1 <DATE> <TIME> <HOST> |E| psBitSetOp| : Line 18 7- psBitSet sizes not the same1 <DATE> <TIME> <HOST> |E| psBitSetOp| : Line 189 - psBitSet sizes not the same -
trunk/psLib/test/collections/verified/tst_psBitSet_06.stderr
r1018 r1073 1 <DATE> <TIME> <HOST> |E| psBitSetOp| : Line 214 - Invalid psBitMask binary operation: ZZXOR 2 <DATE> <TIME> <HOST> |E| psBitSetAlloc| : Line 84 - Allocation size must be > 0: size = -4 3 <DATE> <TIME> <HOST> |E| psBitSetFree| : Line 103 - Null psBitSet for inBitSet argument 1 <DATE> <TIME> <HOST> |E| psBitSetOp| : Line 216 - Invalid psBitMask binary operation: ZZXOR 2 <DATE> <TIME> <HOST> |E| psBitSetAlloc| : Line 86 - Allocation size must be > 0: size = -4 -
trunk/psLib/test/collections/verified/tst_psBitSet_06.stdout
r1041 r1073 35 35 /***************************** TESTPOINT ******************************************\ 36 36 * TestFile: tst_psBitSet_06.c * 37 * TestPoint: psBitSet{Attempt to free null BitSet} *38 * TestType: Negative *39 * ExpectedErrorText: Null psBitSet for inBitSet argument *40 * ExpectedStatusValue: 0 *41 \**********************************************************************************/42 43 44 ---> TESTPOINT PASSED (psBitSet{Attempt to free null BitSet} | tst_psBitSet_06.c)45 46 /***************************** TESTPOINT ******************************************\47 * TestFile: tst_psBitSet_06.c *48 37 * TestPoint: psBitSet{Free psBitSets} * 49 38 * TestType: Positive * -
trunk/psLib/test/collections/verified/tst_psList.stderr
r1034 r1073 30 30 31 31 <DATE> <TIME> <HOST> |I| testListGet|Following should be an error 32 <DATE> <TIME> <HOST> |E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:26 4).32 <DATE> <TIME> <HOST> |E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:262). 33 33 34 34 ---> TESTPOINT PASSED (psList{489-testListGet} | tst_psList.c) … … 70 70 <DATE> <TIME> <HOST> |I|testListIterato| psListSetIterator/psListGetNext/psListGetPrev shall move the list cursor to the specified location 71 71 <DATE> <TIME> <HOST> |I|testListIterato|Following should error with 'Unexpected null pointer' 72 <DATE> <TIME> <HOST> |E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:26 4).72 <DATE> <TIME> <HOST> |E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:262). 73 73 <DATE> <TIME> <HOST> |I|testListIterato|Following should error with 'Can't move to an unknown position.' 74 74 <DATE> <TIME> <HOST> |E|listSetIterator|Can't move to an unknown position. Not moving the iterator position. -
trunk/psLib/test/collections/verified/tst_psSort_03.stderr
r1018 r1073 1 <DATE> <TIME> <HOST> |E| psSort| : Line 13 6- Input and output vector sizes are not equal: in=5 out=61 <DATE> <TIME> <HOST> |E| psSort| : Line 137 - Input and output vector sizes are not equal: in=5 out=6 -
trunk/psLib/test/collections/verified/tst_psSort_04.stderr
r1018 r1073 1 <DATE> <TIME> <HOST> |E| psSort| : Line 11 8- Null input vector1 <DATE> <TIME> <HOST> |E| psSort| : Line 119 - Null input vector
Note:
See TracChangeset
for help on using the changeset viewer.
