IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2004, 11:40:28 AM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

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

    r1406 r1638  
    11/*****************************************************************************
    22    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.
    36 *****************************************************************************/
    47#include <stdio.h>
     
    1114    int lev = 0;
    1215    int testStatus = true;
     16
     17    // XXX: Should we test this behavior?
     18    //(void)psTraceSetLevel("", 0);
    1319
    1420    printPositiveTestHeader(stdout,
     
    5965                "Testing psTraceSetLevel and psTraceGetLevel",
    6066                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
    61102    return(!testStatus);
    62103}
Note: See TracChangeset for help on using the changeset viewer.