Changeset 1638 for trunk/psLib/test/sysUtils/tst_psTrace00.c
- Timestamp:
- Aug 27, 2004, 11:40:28 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psTrace00.c (modified) (3 diffs)
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 }
Note:
See TracChangeset
for help on using the changeset viewer.
