IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1136


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.

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

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/builddir/tst_psTrace00.d

    r1109 r1136  
    33  ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \
    44  ../../include/psString.h ../../include/psType.h ../../include/psList.h \
    5   ../../include/psVector.h ../../include/psHash.h \
    6   ../../include/psScalar.h ../../include/psImage.h \
     5  ../../include/psCompare.h ../../include/psVector.h \
     6  ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \
    77  ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \
    88  ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \
  • trunk/psLib/test/sysUtils/builddir/tst_psTrace01.d

    r1109 r1136  
    33  ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \
    44  ../../include/psString.h ../../include/psType.h ../../include/psList.h \
    5   ../../include/psVector.h ../../include/psHash.h \
    6   ../../include/psScalar.h ../../include/psImage.h \
     5  ../../include/psCompare.h ../../include/psVector.h \
     6  ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \
    77  ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \
    88  ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \
  • trunk/psLib/test/sysUtils/builddir/tst_psTrace02.d

    r1109 r1136  
    33  ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \
    44  ../../include/psString.h ../../include/psType.h ../../include/psList.h \
    5   ../../include/psVector.h ../../include/psHash.h \
    6   ../../include/psScalar.h ../../include/psImage.h \
     5  ../../include/psCompare.h ../../include/psVector.h \
     6  ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \
    77  ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \
    88  ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \
  • trunk/psLib/test/sysUtils/builddir/tst_psTrace03.d

    r1109 r1136  
    33  ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \
    44  ../../include/psString.h ../../include/psType.h ../../include/psList.h \
    5   ../../include/psVector.h ../../include/psHash.h \
    6   ../../include/psScalar.h ../../include/psImage.h \
     5  ../../include/psCompare.h ../../include/psVector.h \
     6  ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \
    77  ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \
    88  ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \
  • trunk/psLib/test/sysUtils/builddir/tst_psTrace04.d

    r1109 r1136  
    33  ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \
    44  ../../include/psString.h ../../include/psType.h ../../include/psList.h \
    5   ../../include/psVector.h ../../include/psHash.h \
    6   ../../include/psScalar.h ../../include/psImage.h \
     5  ../../include/psCompare.h ../../include/psVector.h \
     6  ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \
    77  ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \
    88  ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \
  • trunk/psLib/test/sysUtils/tst_psTrace00.c

    r905 r1136  
    1616                            "psTraceSetLevel() and psTraceGetLevel()");
    1717    for (i=0;i<10;i++) {
    18         psTraceSetLevel(".", i);
     18        (void)psTraceSetLevel(".", i);
    1919        lev = psTraceGetLevel(".");
    2020        if (lev != i) {
     
    2424        }
    2525    }
    26     psTraceSetLevel(".", 3);
     26    (void)psTraceSetLevel(".", 3);
    2727
    2828    for (i=5;i<10;i++) {
    29         psTraceSetLevel(".NODE00", i);
     29        (void)psTraceSetLevel(".NODE00", i);
    3030        lev = psTraceGetLevel(".NODE00");
    3131        if (lev != i) {
     
    4444
    4545
    46     psTraceSetLevel(".NODE00.NODE01", 4);
     46    (void)psTraceSetLevel(".NODE00.NODE01", 4);
    4747    for (i=0;i<10;i++) {
    48         psTraceSetLevel(".NODE00.NODE01", i);
     48        (void)psTraceSetLevel(".NODE00.NODE01", i);
    4949        lev = psTraceGetLevel(".NODE00.NODE01");
    5050        if (lev != i) {
  • 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(".")) ||
  • trunk/psLib/test/sysUtils/tst_psTrace02.c

    r905 r1136  
    2929                                "psTrace()");
    3030
    31         psTraceSetLevel(".", 4);
     31        (void)psTraceSetLevel(".", 4);
    3232        psTrace(".", 5, "(0) This message should not be displayed (%x)\n",
    3333                0xbeefface);
    34         psTraceSetLevel(".", 7);
     34        (void)psTraceSetLevel(".", 7);
    3535        psTrace(".", 5, "(0) This message should be displayed (%x)\n",
    3636                0xbeefface);
    3737
    38         psTraceSetLevel(".a", 4);
     38        (void)psTraceSetLevel(".a", 4);
    3939        psTrace(".a", 5, "(1) This message should not be displayed (%x)\n",
    4040                0xbeefface);
    41         psTraceSetLevel(".a", 7);
     41        (void)psTraceSetLevel(".a", 7);
    4242        psTrace(".a", 5, "(1) This message should be displayed (%x)\n",
    4343                0xbeefface);
    4444
    4545
    46         psTraceSetLevel(".a.b", 4);
     46        (void)psTraceSetLevel(".a.b", 4);
    4747        psTrace(".a.b", 5, "(2) This message should not be displayed (%x)\n",
    4848                0xbeefface);
    49         psTraceSetLevel(".a.b", 7);
     49        (void)psTraceSetLevel(".a.b", 7);
    5050        psTrace(".a.b", 5, "(2) This message should be displayed (%x)\n",
    5151                0xbeefface);
  • trunk/psLib/test/sysUtils/tst_psTrace03.c

    r905 r1136  
    1313                            "psTracePrintLevels()");
    1414
    15     psTraceSetLevel(".", 9);
     15    (void)psTraceSetLevel(".", 9);
    1616
    17     psTraceSetLevel(".a", 8);
    18     psTraceSetLevel(".b", 7);
    19     psTraceSetLevel(".c", 5);
     17    (void)psTraceSetLevel(".a", 8);
     18    (void)psTraceSetLevel(".b", 7);
     19    (void)psTraceSetLevel(".c", 5);
    2020
    21     psTraceSetLevel(".a.a", 4);
    22     psTraceSetLevel(".a.b", 3);
     21    (void)psTraceSetLevel(".a.a", 4);
     22    (void)psTraceSetLevel(".a.b", 3);
    2323
    24     psTraceSetLevel(".b.a", 2);
    25     psTraceSetLevel(".b.b", 1);
     24    (void)psTraceSetLevel(".b.a", 2);
     25    (void)psTraceSetLevel(".b.b", 1);
    2626
    27     psTraceSetLevel(".c.a", 0);
    28     psTraceSetLevel(".c.b", 3);
    29     psTraceSetLevel(".c.c", 5);
     27    (void)psTraceSetLevel(".c.a", 0);
     28    (void)psTraceSetLevel(".c.b", 3);
     29    (void)psTraceSetLevel(".c.c", 5);
    3030
    3131    psTracePrintLevels();
  • trunk/psLib/test/sysUtils/tst_psTrace04.c

    r905 r1136  
    1212                            "psTrace functions",
    1313                            "Testing psTraceReset()");
    14     psTraceSetLevel(".", 9);
     14    (void)psTraceSetLevel(".", 9);
    1515
    16     psTraceSetLevel(".a", 8);
    17     psTraceSetLevel(".b", 7);
    18     psTraceSetLevel(".c", 5);
     16    (void)psTraceSetLevel(".a", 8);
     17    (void)psTraceSetLevel(".b", 7);
     18    (void)psTraceSetLevel(".c", 5);
    1919
    20     psTraceSetLevel(".a.a", 4);
    21     psTraceSetLevel(".a.b", 3);
     20    (void)psTraceSetLevel(".a.a", 4);
     21    (void)psTraceSetLevel(".a.b", 3);
    2222
    23     psTraceSetLevel(".b.a", 2);
    24     psTraceSetLevel(".b.b", 1);
     23    (void)psTraceSetLevel(".b.a", 2);
     24    (void)psTraceSetLevel(".b.b", 1);
    2525
    26     psTraceSetLevel(".c.a", 0);
    27     psTraceSetLevel(".c.b", 3);
    28     psTraceSetLevel(".c.c", 5);
     26    (void)psTraceSetLevel(".c.a", 0);
     27    (void)psTraceSetLevel(".c.b", 3);
     28    (void)psTraceSetLevel(".c.c", 5);
    2929
    3030    psTraceReset();
Note: See TracChangeset for help on using the changeset viewer.