Changeset 963
- Timestamp:
- Jun 9, 2004, 2:09:26 PM (22 years ago)
- Location:
- trunk/psLib/test/sysUtils
- Files:
-
- 7 edited
-
tst_psLogMsg00.c (modified) (2 diffs)
-
tst_psLogMsg01.c (modified) (2 diffs)
-
tst_psLogMsg02.c (modified) (2 diffs)
-
tst_psLogMsg03.c (modified) (2 diffs)
-
verified/tst_psLogMsg01.stdout (modified) (1 diff)
-
verified/tst_psLogMsg02.stdout (modified) (1 diff)
-
verified/tst_psLogMsg03.stdout (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psLogMsg00.c
r891 r963 34 34 // should actually be displayed. 35 35 for (i=0;i<10;i++) { 36 psLogMsg(__func__, i, "Hello World! My level is %d %f %s\n", i,36 myLogMsg(__func__, i, "Hello World! My level is %d %f %s\n", i, 37 37 (float) i, "beep beep"); 38 38 } … … 52 52 // should actually be displayed. 53 53 for (i=0;i<10;i++) { 54 psLogMsg(__func__, i, "Hello World! My level is %d %f %s\n", i,54 myLogMsg(__func__, i, "Hello World! My level is %d %f %s\n", i, 55 55 (float) i, "beep beep"); 56 56 } -
trunk/psLib/test/sysUtils/tst_psLogMsg01.c
r852 r963 17 17 printPositiveTestHeader(stdout, 18 18 "psLogMsg functions", 19 "ps SetLogLevel()");19 "psLogSetLevel()"); 20 20 21 ps SetLogLevel(9);21 psLogSetLevel(9); 22 22 // Send a log messages for levels 0:9. 23 23 for (i=0;i<10;i++) { … … 25 25 } 26 26 27 ps SetLogLevel(5);27 psLogSetLevel(5); 28 28 psLogMsg(__func__, 6, "This should not be displayed (level %d)\n", 6); 29 ps SetLogLevel(4);29 psLogSetLevel(4); 30 30 psLogMsg(__func__, 4, "This should be displayed (level %d)\n", 4); 31 31 32 32 printFooter(stdout, 33 33 "psLogMsg functions", 34 "ps SetLogLevel()",34 "psLogSetLevel()", 35 35 testStatus); 36 36 -
trunk/psLib/test/sysUtils/tst_psLogMsg02.c
r852 r963 17 17 printPositiveTestHeader(stdout, 18 18 "psLogMsg functions", 19 "ps SetLogFormat()");19 "psLogSetFormat()"); 20 20 21 21 22 printf("------------- ps SetLogFormat() -------------\n");23 ps SetLogFormat("");22 printf("------------- psLogSetFormat() -------------\n"); 23 psLogSetFormat(""); 24 24 for (i=0;i<10;i++) { 25 25 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 26 26 } 27 27 28 printf("------------- ps SetLogFormat(T) -------------\n");29 ps SetLogFormat("T");28 printf("------------- psLogSetFormat(T) -------------\n"); 29 psLogSetFormat("T"); 30 30 for (i=0;i<10;i++) { 31 31 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 32 32 } 33 33 34 printf("------------- ps SetLogFormat(H) -------------\n");35 ps SetLogFormat("TH");34 printf("------------- psLogSetFormat(H) -------------\n"); 35 psLogSetFormat("TH"); 36 36 for (i=0;i<10;i++) { 37 37 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 38 38 } 39 39 40 printf("------------- ps SetLogFormat(L) -------------\n");41 ps SetLogFormat("L");40 printf("------------- psLogSetFormat(L) -------------\n"); 41 psLogSetFormat("L"); 42 42 for (i=0;i<10;i++) { 43 43 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 44 44 } 45 45 46 printf("------------- ps SetLogFormat(N) -------------\n");47 ps SetLogFormat("N");46 printf("------------- psLogSetFormat(N) -------------\n"); 47 psLogSetFormat("N"); 48 48 for (i=0;i<10;i++) { 49 49 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 50 50 } 51 51 52 printf("------------- ps SetLogFormat(M) -------------\n");53 ps SetLogFormat("M");52 printf("------------- psLogSetFormat(M) -------------\n"); 53 psLogSetFormat("M"); 54 54 for (i=0;i<10;i++) { 55 55 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 56 56 } 57 57 58 printf("------------- ps SetLogFormat(THLNM) -------------\n");59 ps SetLogFormat("THLNM");58 printf("------------- psLogSetFormat(THLNM) -------------\n"); 59 psLogSetFormat("THLNM"); 60 60 for (i=0;i<10;i++) { 61 61 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); … … 64 64 printFooter(stdout, 65 65 "psLogMsg functions", 66 "ps SetLogFormat()",66 "psLogSetFormat()", 67 67 testStatus); 68 68 -
trunk/psLib/test/sysUtils/tst_psLogMsg03.c
r852 r963 18 18 printPositiveTestHeader(stdout, 19 19 "psLogMsg functions", 20 "ps SetLogDestination()");20 "psLogSetDestination()"); 21 21 22 printf("------------- ps SetLogDestination(PS_LOG_NONE) -------------\n");23 ps SetLogDestination(PS_LOG_NONE);22 printf("------------- psLogSetDestination(PS_LOG_NONE) -------------\n"); 23 psLogSetDestination(PS_LOG_NONE); 24 24 for (i=0;i<10;i++) { 25 25 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 26 26 } 27 27 28 printf("------------- ps SetLogDestination(PS_LOG_TO_STDERR) -------------\n");29 ps SetLogDestination(PS_LOG_TO_STDERR);28 printf("------------- psLogSetDestination(PS_LOG_TO_STDERR) -------------\n"); 29 psLogSetDestination(PS_LOG_TO_STDERR); 30 30 for (i=0;i<10;i++) { 31 31 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); 32 32 } 33 33 34 printf("------------- ps SetLogDestination(PS_LOG_TO_STDOUT) -------------\n");35 ps SetLogDestination(PS_LOG_TO_STDOUT);34 printf("------------- psLogSetDestination(PS_LOG_TO_STDOUT) -------------\n"); 35 psLogSetDestination(PS_LOG_TO_STDOUT); 36 36 for (i=0;i<10;i++) { 37 37 psLogMsg(__func__, i, "Hello World! My level is %d\n", i); … … 40 40 printFooter(stdout, 41 41 "psLogMsg functions", 42 "ps SetLogDestination()",42 "psLogSetDestination()", 43 43 testStatus); 44 44 -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg01.stdout
r588 r963 1 1 /----------------------------- TESTPOINT ------------------------------------------\ 2 2 | TestFile: tst_psLogMsg01.c | 3 | TestPoint: psLogMsg functions{ps SetLogLevel()} |3 | TestPoint: psLogMsg functions{psLogSetLevel()} | 4 4 | TestType: Positive | 5 5 \----------------------------------------------------------------------------------/ 6 6 7 7 8 ---> TESTPOINT PASSED (psLogMsg functions{ps SetLogLevel()} | tst_psLogMsg01.c)8 ---> TESTPOINT PASSED (psLogMsg functions{psLogSetLevel()} | tst_psLogMsg01.c) 9 9 -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stdout
r588 r963 1 1 /----------------------------- TESTPOINT ------------------------------------------\ 2 2 | TestFile: tst_psLogMsg02.c | 3 | TestPoint: psLogMsg functions{ps SetLogFormat()} |3 | TestPoint: psLogMsg functions{psLogSetFormat()} | 4 4 | TestType: Positive | 5 5 \----------------------------------------------------------------------------------/ 6 6 7 ------------- ps SetLogFormat() -------------8 ------------- ps SetLogFormat(T) -------------9 ------------- ps SetLogFormat(H) -------------10 ------------- ps SetLogFormat(L) -------------11 ------------- ps SetLogFormat(N) -------------12 ------------- ps SetLogFormat(M) -------------13 ------------- ps SetLogFormat(THLNM) -------------7 ------------- psLogSetFormat() ------------- 8 ------------- psLogSetFormat(T) ------------- 9 ------------- psLogSetFormat(H) ------------- 10 ------------- psLogSetFormat(L) ------------- 11 ------------- psLogSetFormat(N) ------------- 12 ------------- psLogSetFormat(M) ------------- 13 ------------- psLogSetFormat(THLNM) ------------- 14 14 15 ---> TESTPOINT PASSED (psLogMsg functions{ps SetLogFormat()} | tst_psLogMsg02.c)15 ---> TESTPOINT PASSED (psLogMsg functions{psLogSetFormat()} | tst_psLogMsg02.c) 16 16 -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stdout
r855 r963 1 1 /----------------------------- TESTPOINT ------------------------------------------\ 2 2 | TestFile: tst_psLogMsg03.c | 3 | TestPoint: psLogMsg functions{ps SetLogDestination()} |3 | TestPoint: psLogMsg functions{psLogSetDestination()} | 4 4 | TestType: Positive | 5 5 \----------------------------------------------------------------------------------/ 6 6 7 ------------- ps SetLogDestination(PS_LOG_NONE) -------------8 ------------- ps SetLogDestination(PS_LOG_TO_STDERR) -------------9 ------------- ps SetLogDestination(PS_LOG_TO_STDOUT) -------------7 ------------- psLogSetDestination(PS_LOG_NONE) ------------- 8 ------------- psLogSetDestination(PS_LOG_TO_STDERR) ------------- 9 ------------- psLogSetDestination(PS_LOG_TO_STDOUT) ------------- 10 10 <DATE> <TIME> <HOST> |A|main | 11 11 Hello World! My level is 0 … … 17 17 Hello World! My level is 3 18 18 19 ---> TESTPOINT PASSED (psLogMsg functions{ps SetLogDestination()} | tst_psLogMsg03.c)19 ---> TESTPOINT PASSED (psLogMsg functions{psLogSetDestination()} | tst_psLogMsg03.c) 20 20
Note:
See TracChangeset
for help on using the changeset viewer.
