IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2004, 3:05:37 PM (22 years ago)
Author:
desonia
Message:

fixed trace tests to compile but fail if psLib was compiled with PS_NO_TRACE set.

File:
1 edited

Legend:

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

    r905 r1136  
    1717
    1818    for (i=0;i<10;i++) {
    19         psTraceSetLevel(".", i);
     19        (void)psTraceSetLevel(".", i);
    2020        psTraceReset();
    2121
     
    2727        }
    2828    }
    29     psTraceSetLevel(".", 5);
    30     psTraceSetLevel(".a", 4);
    31     psTraceSetLevel(".a.b", 3);
    32     psTraceSetLevel(".a.b.c", 2);
     29    (void)psTraceSetLevel(".", 5);
     30    (void)psTraceSetLevel(".a", 4);
     31    (void)psTraceSetLevel(".a.b", 3);
     32    (void)psTraceSetLevel(".a.b.c", 2);
     33    if ((5 != psTraceGetLevel(".")) ||
     34            (4 != psTraceGetLevel(".a")) ||
     35            (3 != psTraceGetLevel(".a.b")) ||
     36            (2 != psTraceGetLevel(".a.b.c"))) {
     37        printf("ERROR: trace levels were not settable?\n");
     38        successFlag = false;
     39    }
     40
    3341    psTraceReset();
    3442    if ((DEFAULT_TRACE_LEVEL != psTraceGetLevel(".")) ||
Note: See TracChangeset for help on using the changeset viewer.