IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5072 for trunk/psLib/test/sys


Ignore:
Timestamp:
Sep 19, 2005, 4:43:53 PM (21 years ago)
Author:
drobbin
Message:

added psLogGet fxns and updated spline functions for unsigned int compatability

Location:
trunk/psLib/test/sys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sys/tst_psLogMsg.c

    r4979 r5072  
    2626                              },
    2727                              {
    28                                   testLogMsg02, 2, "psLogSetLevel()", 0, false
     28                                  testLogMsg02, 2, "psLogSet/GetLevel()", 0, false
    2929                              },
    3030                              {
     
    3535                              },
    3636                              {
    37                                   testLogMsg05, 5, "psLogSetDestination()", 0, false
     37                                  testLogMsg05, 5, "psLogSet/GetDestination()", 0, false
    3838                              },
    3939                              {
     
    107107    psLogSetLevel(4);
    108108    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() );
    109110
    110111    return 0;
     
    189190    //    psLogSetDestination("none");
    190191    psLogSetDestination(0);
     192    printf("    File Descriptor = %d \n", psLogGetDestination() );
    191193    for (i=0;i<10;i++) {
    192194        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
     
    196198    //    psLogSetDestination("dest:stderr");
    197199    psLogSetDestination(2);
     200    printf("    File Descriptor = %d \n", psLogGetDestination() );
    198201    for (i=0;i<10;i++) {
    199202        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
     
    203206    //    psLogSetDestination("dest:stdout");
    204207    psLogSetDestination(1);
     208    printf("    File Descriptor = %d \n", psLogGetDestination() );
    205209    for (i=0;i<10;i++) {
    206210        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
     
    211215    //    psLogSetDestination("file:log.txt");
    212216    psLogSetDestination(fd);
     217    printf("    File Descriptor = %d \n", psLogGetDestination() );
    213218    for (i=0;i<10;i++) {
    214219        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
  • trunk/psLib/test/sys/verified/tst_psLogMsg.stderr

    r4979 r5072  
    3535/***************************** TESTPOINT ******************************************\
    3636*             TestFile: tst_psLogMsg.c                                             *
    37 *            TestPoint: psLogMsg{psLogSetLevel()}                                  *
     37*            TestPoint: psLogMsg{psLogSet/GetLevel()}                              *
    3838*             TestType: Positive                                                   *
    3939\**********************************************************************************/
     
    6161<DATE><TIME>|<HOST>|4|testLogMsg02
    6262    This should  be displayed (level 4)
     63<DATE><TIME>|<HOST>|4|testLogMsg02
     64    This should display level 4 logging -> level 4
    6365
    64 ---> TESTPOINT PASSED (psLogMsg{psLogSetLevel()} | tst_psLogMsg.c)
     66---> TESTPOINT PASSED (psLogMsg{psLogSet/GetLevel()} | tst_psLogMsg.c)
    6567
    6668/***************************** TESTPOINT ******************************************\
     
    152154/***************************** TESTPOINT ******************************************\
    153155*             TestFile: tst_psLogMsg.c                                             *
    154 *            TestPoint: psLogMsg{psLogSetDestination()}                            *
     156*            TestPoint: psLogMsg{psLogSet/GetDestination()}                        *
    155157*             TestType: Positive                                                   *
    156158\**********************************************************************************/
     
    165167    Hello World!  My level is 3
    166168
    167 ---> TESTPOINT PASSED (psLogMsg{psLogSetDestination()} | tst_psLogMsg.c)
     169---> TESTPOINT PASSED (psLogMsg{psLogSet/GetDestination()} | tst_psLogMsg.c)
    168170
    169171/***************************** TESTPOINT ******************************************\
  • trunk/psLib/test/sys/verified/tst_psLogMsg.stdout

    r4979 r5072  
    11--------------- psLogSetDestination(PS_LOG_NONE) ----------------
     2    File Descriptor = 0
    23------------- psLogSetDestination(PS_LOG_TO_STDERR) -------------
     4    File Descriptor = 2
    35------------- psLogSetDestination(PS_LOG_TO_STDOUT) -------------
     6    File Descriptor = 1
    47<DATE><TIME>|<HOST>|A|testLogMsg05
    58    Hello World!  My level is 0
     
    1114    Hello World!  My level is 3
    1215--------------- psLogSetDestination(file:log.txt) ---------------
     16    File Descriptor = 3
    1317--------------------- The Contents of log.txt -------------------
    1418<DATE><TIME>|<HOST>|A|testLogMsg05
Note: See TracChangeset for help on using the changeset viewer.