IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2004, 1:04:35 PM (22 years ago)
Author:
gusciora
Message:

This is a fairly large checkin. I had been sitting on a lot of test code
that was not quite in sync with the current test harness. I modified it
somewhat so it mostly works with the test harness, though there are still
problems with the printFooter() function not having a status for "status
unknown". Also, the runTest is not correctly parsing my date strings in
psLogMsg calls. Also, I added an individual entry for each test in the
Makefile in the test directory. I did this because the generic rules were
failing, and I did not want to break the tests for those people who were
successfully using the generic rules.

File:
1 edited

Legend:

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

    r555 r560  
    1212    int successFlag = true;
    1313
    14     printPositiveTestHeader(stderr,
     14    printPositiveTestHeader(stdout,
    1515                            "psTrace functions",
    16                             "Testing psTraceReset()");
     16                            "psTraceReset()");
    1717
    1818    for (i=0;i<10;i++) {
     
    2121
    2222        lev = psGetTraceLevel(".");
    23         if (lev != UNKNOWN_TRACE_LEVEL) {
     23        if (lev != DEFAULT_TRACE_LEVEL) {
    2424            printf("ERROR: expected trace level was %d, actual was %d\n",
    2525                   i, lev);
     
    3232    psSetTraceLevel(".a.b.c", 2);
    3333    psTraceReset();
    34     if ((UNKNOWN_TRACE_LEVEL != psGetTraceLevel(".")) ||
    35             (UNKNOWN_TRACE_LEVEL != psGetTraceLevel(".a")) ||
    36             (UNKNOWN_TRACE_LEVEL != psGetTraceLevel(".a.b")) ||
    37             (UNKNOWN_TRACE_LEVEL != psGetTraceLevel(".a.b.c"))) {
     34    if ((DEFAULT_TRACE_LEVEL != psGetTraceLevel(".")) ||
     35            (DEFAULT_TRACE_LEVEL != psGetTraceLevel(".a")) ||
     36            (DEFAULT_TRACE_LEVEL != psGetTraceLevel(".a.b")) ||
     37            (DEFAULT_TRACE_LEVEL != psGetTraceLevel(".a.b.c"))) {
    3838        printf("ERROR: trace levels were not reset properly\n");
    3939        successFlag = false;
    4040    }
    4141
    42     printFooter(stderr,
     42    printFooter(stdout,
    4343                "psTrace functions",
    44                 "Testing psTraceReset()",
     44                "psTraceReset()",
    4545                successFlag);
    46     exit(0);
     46
     47    exit(!successFlag);
    4748}
Note: See TracChangeset for help on using the changeset viewer.