IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 963


Ignore:
Timestamp:
Jun 9, 2004, 2:09:26 PM (22 years ago)
Author:
gusciora
Message:

renamed the log functions

Location:
trunk/psLib/test/sysUtils
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/tst_psLogMsg00.c

    r891 r963  
    3434    // should actually be displayed.
    3535    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,
    3737                 (float) i, "beep beep");
    3838    }
     
    5252    // should actually be displayed.
    5353    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,
    5555                 (float) i, "beep beep");
    5656    }
  • trunk/psLib/test/sysUtils/tst_psLogMsg01.c

    r852 r963  
    1717    printPositiveTestHeader(stdout,
    1818                            "psLogMsg functions",
    19                             "psSetLogLevel()");
     19                            "psLogSetLevel()");
    2020
    21     psSetLogLevel(9);
     21    psLogSetLevel(9);
    2222    // Send a log messages for levels 0:9.
    2323    for (i=0;i<10;i++) {
     
    2525    }
    2626
    27     psSetLogLevel(5);
     27    psLogSetLevel(5);
    2828    psLogMsg(__func__, 6, "This should not be displayed (level %d)\n", 6);
    29     psSetLogLevel(4);
     29    psLogSetLevel(4);
    3030    psLogMsg(__func__, 4, "This should  be displayed (level %d)\n", 4);
    3131
    3232    printFooter(stdout,
    3333                "psLogMsg functions",
    34                 "psSetLogLevel()",
     34                "psLogSetLevel()",
    3535                testStatus);
    3636
  • trunk/psLib/test/sysUtils/tst_psLogMsg02.c

    r852 r963  
    1717    printPositiveTestHeader(stdout,
    1818                            "psLogMsg functions",
    19                             "psSetLogFormat()");
     19                            "psLogSetFormat()");
    2020
    2121
    22     printf("------------- psSetLogFormat() -------------\n");
    23     psSetLogFormat("");
     22    printf("------------- psLogSetFormat() -------------\n");
     23    psLogSetFormat("");
    2424    for (i=0;i<10;i++) {
    2525        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    2626    }
    2727
    28     printf("------------- psSetLogFormat(T) -------------\n");
    29     psSetLogFormat("T");
     28    printf("------------- psLogSetFormat(T) -------------\n");
     29    psLogSetFormat("T");
    3030    for (i=0;i<10;i++) {
    3131        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    3232    }
    3333
    34     printf("------------- psSetLogFormat(H) -------------\n");
    35     psSetLogFormat("TH");
     34    printf("------------- psLogSetFormat(H) -------------\n");
     35    psLogSetFormat("TH");
    3636    for (i=0;i<10;i++) {
    3737        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    3838    }
    3939
    40     printf("------------- psSetLogFormat(L) -------------\n");
    41     psSetLogFormat("L");
     40    printf("------------- psLogSetFormat(L) -------------\n");
     41    psLogSetFormat("L");
    4242    for (i=0;i<10;i++) {
    4343        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    4444    }
    4545
    46     printf("------------- psSetLogFormat(N) -------------\n");
    47     psSetLogFormat("N");
     46    printf("------------- psLogSetFormat(N) -------------\n");
     47    psLogSetFormat("N");
    4848    for (i=0;i<10;i++) {
    4949        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    5050    }
    5151
    52     printf("------------- psSetLogFormat(M) -------------\n");
    53     psSetLogFormat("M");
     52    printf("------------- psLogSetFormat(M) -------------\n");
     53    psLogSetFormat("M");
    5454    for (i=0;i<10;i++) {
    5555        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    5656    }
    5757
    58     printf("------------- psSetLogFormat(THLNM) -------------\n");
    59     psSetLogFormat("THLNM");
     58    printf("------------- psLogSetFormat(THLNM) -------------\n");
     59    psLogSetFormat("THLNM");
    6060    for (i=0;i<10;i++) {
    6161        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
     
    6464    printFooter(stdout,
    6565                "psLogMsg functions",
    66                 "psSetLogFormat()",
     66                "psLogSetFormat()",
    6767                testStatus);
    6868
  • trunk/psLib/test/sysUtils/tst_psLogMsg03.c

    r852 r963  
    1818    printPositiveTestHeader(stdout,
    1919                            "psLogMsg functions",
    20                             "psSetLogDestination()");
     20                            "psLogSetDestination()");
    2121
    22     printf("------------- psSetLogDestination(PS_LOG_NONE) -------------\n");
    23     psSetLogDestination(PS_LOG_NONE);
     22    printf("------------- psLogSetDestination(PS_LOG_NONE) -------------\n");
     23    psLogSetDestination(PS_LOG_NONE);
    2424    for (i=0;i<10;i++) {
    2525        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    2626    }
    2727
    28     printf("------------- psSetLogDestination(PS_LOG_TO_STDERR) -------------\n");
    29     psSetLogDestination(PS_LOG_TO_STDERR);
     28    printf("------------- psLogSetDestination(PS_LOG_TO_STDERR) -------------\n");
     29    psLogSetDestination(PS_LOG_TO_STDERR);
    3030    for (i=0;i<10;i++) {
    3131        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    3232    }
    3333
    34     printf("------------- psSetLogDestination(PS_LOG_TO_STDOUT) -------------\n");
    35     psSetLogDestination(PS_LOG_TO_STDOUT);
     34    printf("------------- psLogSetDestination(PS_LOG_TO_STDOUT) -------------\n");
     35    psLogSetDestination(PS_LOG_TO_STDOUT);
    3636    for (i=0;i<10;i++) {
    3737        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
     
    4040    printFooter(stdout,
    4141                "psLogMsg functions",
    42                 "psSetLogDestination()",
     42                "psLogSetDestination()",
    4343                testStatus);
    4444
  • trunk/psLib/test/sysUtils/verified/tst_psLogMsg01.stdout

    r588 r963  
    11/----------------------------- TESTPOINT ------------------------------------------\
    22|             TestFile: tst_psLogMsg01.c                                           |
    3 |            TestPoint: psLogMsg functions{psSetLogLevel()}                        |
     3|            TestPoint: psLogMsg functions{psLogSetLevel()}                        |
    44|             TestType: Positive                                                   |
    55\----------------------------------------------------------------------------------/
    66
    77
    8 ---> TESTPOINT PASSED (psLogMsg functions{psSetLogLevel()} | tst_psLogMsg01.c)
     8---> TESTPOINT PASSED (psLogMsg functions{psLogSetLevel()} | tst_psLogMsg01.c)
    99
  • trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stdout

    r588 r963  
    11/----------------------------- TESTPOINT ------------------------------------------\
    22|             TestFile: tst_psLogMsg02.c                                           |
    3 |            TestPoint: psLogMsg functions{psSetLogFormat()}                       |
     3|            TestPoint: psLogMsg functions{psLogSetFormat()}                       |
    44|             TestType: Positive                                                   |
    55\----------------------------------------------------------------------------------/
    66
    7 ------------- psSetLogFormat() -------------
    8 ------------- psSetLogFormat(T) -------------
    9 ------------- psSetLogFormat(H) -------------
    10 ------------- psSetLogFormat(L) -------------
    11 ------------- psSetLogFormat(N) -------------
    12 ------------- psSetLogFormat(M) -------------
    13 ------------- psSetLogFormat(THLNM) -------------
     7------------- psLogSetFormat() -------------
     8------------- psLogSetFormat(T) -------------
     9------------- psLogSetFormat(H) -------------
     10------------- psLogSetFormat(L) -------------
     11------------- psLogSetFormat(N) -------------
     12------------- psLogSetFormat(M) -------------
     13------------- psLogSetFormat(THLNM) -------------
    1414
    15 ---> TESTPOINT PASSED (psLogMsg functions{psSetLogFormat()} | tst_psLogMsg02.c)
     15---> TESTPOINT PASSED (psLogMsg functions{psLogSetFormat()} | tst_psLogMsg02.c)
    1616
  • trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stdout

    r855 r963  
    11/----------------------------- TESTPOINT ------------------------------------------\
    22|             TestFile: tst_psLogMsg03.c                                           |
    3 |            TestPoint: psLogMsg functions{psSetLogDestination()}                  |
     3|            TestPoint: psLogMsg functions{psLogSetDestination()}                  |
    44|             TestType: Positive                                                   |
    55\----------------------------------------------------------------------------------/
    66
    7 ------------- psSetLogDestination(PS_LOG_NONE) -------------
    8 ------------- psSetLogDestination(PS_LOG_TO_STDERR) -------------
    9 ------------- psSetLogDestination(PS_LOG_TO_STDOUT) -------------
     7------------- psLogSetDestination(PS_LOG_NONE) -------------
     8------------- psLogSetDestination(PS_LOG_TO_STDERR) -------------
     9------------- psLogSetDestination(PS_LOG_TO_STDOUT) -------------
    1010 <DATE> <TIME> <HOST> |A|main           |
    1111Hello World!  My level is 0
     
    1717Hello World!  My level is 3
    1818
    19 ---> TESTPOINT PASSED (psLogMsg functions{psSetLogDestination()} | tst_psLogMsg03.c)
     19---> TESTPOINT PASSED (psLogMsg functions{psLogSetDestination()} | tst_psLogMsg03.c)
    2020
Note: See TracChangeset for help on using the changeset viewer.