Changeset 5072 for trunk/psLib/test/sys
- Timestamp:
- Sep 19, 2005, 4:43:53 PM (21 years ago)
- Location:
- trunk/psLib/test/sys
- Files:
-
- 3 edited
-
tst_psLogMsg.c (modified) (7 diffs)
-
verified/tst_psLogMsg.stderr (modified) (4 diffs)
-
verified/tst_psLogMsg.stdout (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sys/tst_psLogMsg.c
r4979 r5072 26 26 }, 27 27 { 28 testLogMsg02, 2, "psLogSet Level()", 0, false28 testLogMsg02, 2, "psLogSet/GetLevel()", 0, false 29 29 }, 30 30 { … … 35 35 }, 36 36 { 37 testLogMsg05, 5, "psLogSet Destination()", 0, false37 testLogMsg05, 5, "psLogSet/GetDestination()", 0, false 38 38 }, 39 39 { … … 107 107 psLogSetLevel(4); 108 108 psLogMsg(__func__, 4, "This should be displayed (level %d)\n", 4); 109 psLogMsg(__func__, 4, "This should display level 4 logging -> level %d\n", psLogGetLevel() ); 109 110 110 111 return 0; … … 189 190 // psLogSetDestination("none"); 190 191 psLogSetDestination(0); 192 printf(" File Descriptor = %d \n", psLogGetDestination() ); 191 193 for (i=0;i<10;i++) { 192 194 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); … … 196 198 // psLogSetDestination("dest:stderr"); 197 199 psLogSetDestination(2); 200 printf(" File Descriptor = %d \n", psLogGetDestination() ); 198 201 for (i=0;i<10;i++) { 199 202 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); … … 203 206 // psLogSetDestination("dest:stdout"); 204 207 psLogSetDestination(1); 208 printf(" File Descriptor = %d \n", psLogGetDestination() ); 205 209 for (i=0;i<10;i++) { 206 210 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); … … 211 215 // psLogSetDestination("file:log.txt"); 212 216 psLogSetDestination(fd); 217 printf(" File Descriptor = %d \n", psLogGetDestination() ); 213 218 for (i=0;i<10;i++) { 214 219 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); -
trunk/psLib/test/sys/verified/tst_psLogMsg.stderr
r4979 r5072 35 35 /***************************** TESTPOINT ******************************************\ 36 36 * TestFile: tst_psLogMsg.c * 37 * TestPoint: psLogMsg{psLogSet Level()}*37 * TestPoint: psLogMsg{psLogSet/GetLevel()} * 38 38 * TestType: Positive * 39 39 \**********************************************************************************/ … … 61 61 <DATE><TIME>|<HOST>|4|testLogMsg02 62 62 This should be displayed (level 4) 63 <DATE><TIME>|<HOST>|4|testLogMsg02 64 This should display level 4 logging -> level 4 63 65 64 ---> TESTPOINT PASSED (psLogMsg{psLogSet Level()} | tst_psLogMsg.c)66 ---> TESTPOINT PASSED (psLogMsg{psLogSet/GetLevel()} | tst_psLogMsg.c) 65 67 66 68 /***************************** TESTPOINT ******************************************\ … … 152 154 /***************************** TESTPOINT ******************************************\ 153 155 * TestFile: tst_psLogMsg.c * 154 * TestPoint: psLogMsg{psLogSet Destination()}*156 * TestPoint: psLogMsg{psLogSet/GetDestination()} * 155 157 * TestType: Positive * 156 158 \**********************************************************************************/ … … 165 167 Hello World! My level is 3 166 168 167 ---> TESTPOINT PASSED (psLogMsg{psLogSet Destination()} | tst_psLogMsg.c)169 ---> TESTPOINT PASSED (psLogMsg{psLogSet/GetDestination()} | tst_psLogMsg.c) 168 170 169 171 /***************************** TESTPOINT ******************************************\ -
trunk/psLib/test/sys/verified/tst_psLogMsg.stdout
r4979 r5072 1 1 --------------- psLogSetDestination(PS_LOG_NONE) ---------------- 2 File Descriptor = 0 2 3 ------------- psLogSetDestination(PS_LOG_TO_STDERR) ------------- 4 File Descriptor = 2 3 5 ------------- psLogSetDestination(PS_LOG_TO_STDOUT) ------------- 6 File Descriptor = 1 4 7 <DATE><TIME>|<HOST>|A|testLogMsg05 5 8 Hello World! My level is 0 … … 11 14 Hello World! My level is 3 12 15 --------------- psLogSetDestination(file:log.txt) --------------- 16 File Descriptor = 3 13 17 --------------------- The Contents of log.txt ------------------- 14 18 <DATE><TIME>|<HOST>|A|testLogMsg05
Note:
See TracChangeset
for help on using the changeset viewer.
