Changeset 1638
- Timestamp:
- Aug 27, 2004, 11:40:28 AM (22 years ago)
- Location:
- trunk/psLib/test/sysUtils
- Files:
-
- 3 edited
-
tst_psTrace00.c (modified) (3 diffs)
-
tst_psTrace03.c (modified) (1 diff)
-
tst_psTrace04.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psTrace00.c
r1406 r1638 1 1 /***************************************************************************** 2 2 This code will test whether trace levels can be set successfully. 3 4 XXX: For the last two testpoints, must verify that the results are 5 correct, and put that verification in the test as well. 3 6 *****************************************************************************/ 4 7 #include <stdio.h> … … 11 14 int lev = 0; 12 15 int testStatus = true; 16 17 // XXX: Should we test this behavior? 18 //(void)psTraceSetLevel("", 0); 13 19 14 20 printPositiveTestHeader(stdout, … … 59 65 "Testing psTraceSetLevel and psTraceGetLevel", 60 66 testStatus); 67 68 69 70 printPositiveTestHeader(stdout, 71 "psTrace functions", 72 "psTraceSetLevel(): set multiple components in one call"); 73 74 psTraceReset(); 75 76 (void)psTraceSetLevel(".A.B.C.D.E", 5); 77 78 psTracePrintLevels(); 79 80 printFooter(stdout, 81 "psTrace functions", 82 "psTraceSetLevel(): set multiple components in one call", 83 testStatus); 84 85 86 printPositiveTestHeader(stdout, 87 "psTrace functions", 88 "psTraceSetLevel(): test static inheritance"); 89 90 psTraceReset(); 91 psTraceSetLevel(".A.B", 2); 92 psTraceSetLevel(".A.B.C.D.E", 5); 93 psTracePrintLevels(); 94 psTraceSetLevel(".A.B", 10); 95 psTracePrintLevels(); 96 97 printFooter(stdout, 98 "psTrace functions", 99 "psTraceSetLevel(): test static inheritance", 100 testStatus); 101 61 102 return(!testStatus); 62 103 } -
trunk/psLib/test/sysUtils/tst_psTrace03.c
r1406 r1638 9 9 int main() 10 10 { 11 (void)psTraceSetLevel(".A.B.C.D.E", 2); 12 psTracePrintLevels(); 13 (void)psTraceSetLevel(".A.B", 5); 14 psTracePrintLevels(); 15 psTraceReset(); 16 17 11 18 printPositiveTestHeader(stdout, 12 19 "psTrace functions", -
trunk/psLib/test/sysUtils/tst_psTrace04.c
r1406 r1638 1 1 /***************************************************************************** 2 This code will test whether trace messages can be printed successfully 3 with psTracePrintLevels(). 2 This code will test whether trace messages 4 3 *****************************************************************************/ 5 4 #include <stdio.h>
Note:
See TracChangeset
for help on using the changeset viewer.
