Changeset 1136
- Timestamp:
- Jun 29, 2004, 3:05:37 PM (22 years ago)
- Location:
- trunk/psLib/test/sysUtils
- Files:
-
- 10 edited
-
builddir/tst_psTrace00.d (modified) (1 diff)
-
builddir/tst_psTrace01.d (modified) (1 diff)
-
builddir/tst_psTrace02.d (modified) (1 diff)
-
builddir/tst_psTrace03.d (modified) (1 diff)
-
builddir/tst_psTrace04.d (modified) (1 diff)
-
tst_psTrace00.c (modified) (3 diffs)
-
tst_psTrace01.c (modified) (2 diffs)
-
tst_psTrace02.c (modified) (1 diff)
-
tst_psTrace03.c (modified) (1 diff)
-
tst_psTrace04.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/builddir/tst_psTrace00.d
r1109 r1136 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/ps Vector.h ../../include/psHash.h \6 ../../include/ps Scalar.h ../../include/psImage.h \5 ../../include/psCompare.h ../../include/psVector.h \ 6 ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \ 7 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 8 8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ -
trunk/psLib/test/sysUtils/builddir/tst_psTrace01.d
r1109 r1136 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/ps Vector.h ../../include/psHash.h \6 ../../include/ps Scalar.h ../../include/psImage.h \5 ../../include/psCompare.h ../../include/psVector.h \ 6 ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \ 7 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 8 8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ -
trunk/psLib/test/sysUtils/builddir/tst_psTrace02.d
r1109 r1136 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/ps Vector.h ../../include/psHash.h \6 ../../include/ps Scalar.h ../../include/psImage.h \5 ../../include/psCompare.h ../../include/psVector.h \ 6 ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \ 7 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 8 8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ -
trunk/psLib/test/sysUtils/builddir/tst_psTrace03.d
r1109 r1136 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/ps Vector.h ../../include/psHash.h \6 ../../include/ps Scalar.h ../../include/psImage.h \5 ../../include/psCompare.h ../../include/psVector.h \ 6 ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \ 7 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 8 8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ -
trunk/psLib/test/sysUtils/builddir/tst_psTrace04.d
r1109 r1136 3 3 ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \ 4 4 ../../include/psString.h ../../include/psType.h ../../include/psList.h \ 5 ../../include/ps Vector.h ../../include/psHash.h \6 ../../include/ps Scalar.h ../../include/psImage.h \5 ../../include/psCompare.h ../../include/psVector.h \ 6 ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \ 7 7 ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \ 8 8 ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \ -
trunk/psLib/test/sysUtils/tst_psTrace00.c
r905 r1136 16 16 "psTraceSetLevel() and psTraceGetLevel()"); 17 17 for (i=0;i<10;i++) { 18 psTraceSetLevel(".", i);18 (void)psTraceSetLevel(".", i); 19 19 lev = psTraceGetLevel("."); 20 20 if (lev != i) { … … 24 24 } 25 25 } 26 psTraceSetLevel(".", 3);26 (void)psTraceSetLevel(".", 3); 27 27 28 28 for (i=5;i<10;i++) { 29 psTraceSetLevel(".NODE00", i);29 (void)psTraceSetLevel(".NODE00", i); 30 30 lev = psTraceGetLevel(".NODE00"); 31 31 if (lev != i) { … … 44 44 45 45 46 psTraceSetLevel(".NODE00.NODE01", 4);46 (void)psTraceSetLevel(".NODE00.NODE01", 4); 47 47 for (i=0;i<10;i++) { 48 psTraceSetLevel(".NODE00.NODE01", i);48 (void)psTraceSetLevel(".NODE00.NODE01", i); 49 49 lev = psTraceGetLevel(".NODE00.NODE01"); 50 50 if (lev != i) { -
trunk/psLib/test/sysUtils/tst_psTrace01.c
r905 r1136 17 17 18 18 for (i=0;i<10;i++) { 19 psTraceSetLevel(".", i);19 (void)psTraceSetLevel(".", i); 20 20 psTraceReset(); 21 21 … … 27 27 } 28 28 } 29 psTraceSetLevel(".", 5); 30 psTraceSetLevel(".a", 4); 31 psTraceSetLevel(".a.b", 3); 32 psTraceSetLevel(".a.b.c", 2); 29 (void)psTraceSetLevel(".", 5); 30 (void)psTraceSetLevel(".a", 4); 31 (void)psTraceSetLevel(".a.b", 3); 32 (void)psTraceSetLevel(".a.b.c", 2); 33 if ((5 != psTraceGetLevel(".")) || 34 (4 != psTraceGetLevel(".a")) || 35 (3 != psTraceGetLevel(".a.b")) || 36 (2 != psTraceGetLevel(".a.b.c"))) { 37 printf("ERROR: trace levels were not settable?\n"); 38 successFlag = false; 39 } 40 33 41 psTraceReset(); 34 42 if ((DEFAULT_TRACE_LEVEL != psTraceGetLevel(".")) || -
trunk/psLib/test/sysUtils/tst_psTrace02.c
r905 r1136 29 29 "psTrace()"); 30 30 31 psTraceSetLevel(".", 4);31 (void)psTraceSetLevel(".", 4); 32 32 psTrace(".", 5, "(0) This message should not be displayed (%x)\n", 33 33 0xbeefface); 34 psTraceSetLevel(".", 7);34 (void)psTraceSetLevel(".", 7); 35 35 psTrace(".", 5, "(0) This message should be displayed (%x)\n", 36 36 0xbeefface); 37 37 38 psTraceSetLevel(".a", 4);38 (void)psTraceSetLevel(".a", 4); 39 39 psTrace(".a", 5, "(1) This message should not be displayed (%x)\n", 40 40 0xbeefface); 41 psTraceSetLevel(".a", 7);41 (void)psTraceSetLevel(".a", 7); 42 42 psTrace(".a", 5, "(1) This message should be displayed (%x)\n", 43 43 0xbeefface); 44 44 45 45 46 psTraceSetLevel(".a.b", 4);46 (void)psTraceSetLevel(".a.b", 4); 47 47 psTrace(".a.b", 5, "(2) This message should not be displayed (%x)\n", 48 48 0xbeefface); 49 psTraceSetLevel(".a.b", 7);49 (void)psTraceSetLevel(".a.b", 7); 50 50 psTrace(".a.b", 5, "(2) This message should be displayed (%x)\n", 51 51 0xbeefface); -
trunk/psLib/test/sysUtils/tst_psTrace03.c
r905 r1136 13 13 "psTracePrintLevels()"); 14 14 15 psTraceSetLevel(".", 9);15 (void)psTraceSetLevel(".", 9); 16 16 17 psTraceSetLevel(".a", 8);18 psTraceSetLevel(".b", 7);19 psTraceSetLevel(".c", 5);17 (void)psTraceSetLevel(".a", 8); 18 (void)psTraceSetLevel(".b", 7); 19 (void)psTraceSetLevel(".c", 5); 20 20 21 psTraceSetLevel(".a.a", 4);22 psTraceSetLevel(".a.b", 3);21 (void)psTraceSetLevel(".a.a", 4); 22 (void)psTraceSetLevel(".a.b", 3); 23 23 24 psTraceSetLevel(".b.a", 2);25 psTraceSetLevel(".b.b", 1);24 (void)psTraceSetLevel(".b.a", 2); 25 (void)psTraceSetLevel(".b.b", 1); 26 26 27 psTraceSetLevel(".c.a", 0);28 psTraceSetLevel(".c.b", 3);29 psTraceSetLevel(".c.c", 5);27 (void)psTraceSetLevel(".c.a", 0); 28 (void)psTraceSetLevel(".c.b", 3); 29 (void)psTraceSetLevel(".c.c", 5); 30 30 31 31 psTracePrintLevels(); -
trunk/psLib/test/sysUtils/tst_psTrace04.c
r905 r1136 12 12 "psTrace functions", 13 13 "Testing psTraceReset()"); 14 psTraceSetLevel(".", 9);14 (void)psTraceSetLevel(".", 9); 15 15 16 psTraceSetLevel(".a", 8);17 psTraceSetLevel(".b", 7);18 psTraceSetLevel(".c", 5);16 (void)psTraceSetLevel(".a", 8); 17 (void)psTraceSetLevel(".b", 7); 18 (void)psTraceSetLevel(".c", 5); 19 19 20 psTraceSetLevel(".a.a", 4);21 psTraceSetLevel(".a.b", 3);20 (void)psTraceSetLevel(".a.a", 4); 21 (void)psTraceSetLevel(".a.b", 3); 22 22 23 psTraceSetLevel(".b.a", 2);24 psTraceSetLevel(".b.b", 1);23 (void)psTraceSetLevel(".b.a", 2); 24 (void)psTraceSetLevel(".b.b", 1); 25 25 26 psTraceSetLevel(".c.a", 0);27 psTraceSetLevel(".c.b", 3);28 psTraceSetLevel(".c.c", 5);26 (void)psTraceSetLevel(".c.a", 0); 27 (void)psTraceSetLevel(".c.b", 3); 28 (void)psTraceSetLevel(".c.c", 5); 29 29 30 30 psTraceReset();
Note:
See TracChangeset
for help on using the changeset viewer.
