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_psTrace00.c

    r558 r560  
    1010    int i = 0;
    1111    int lev = 0;
    12     int errorFlag = true;
     12    int testStatus = true;
    1313
    14     printPositiveTestHeader(stderr,
     14    printPositiveTestHeader(stdout,
    1515                            "psTrace functions",
    16                             "Testing psSetTraceLevel and psGetTraceLevel");
     16                            "psSetTraceLevel() and psGetTraceLevel()");
    1717    for (i=0;i<10;i++) {
    1818        psSetTraceLevel(".", i);
     
    2121            printf("ERROR: (.) expected trace level was %d, actual was %d\n",
    2222                   i, lev);
    23             errorFlag = false;
     23            testStatus = false;
    2424        }
    2525    }
     
    3232            printf("ERROR: (.NODE00) expected trace level was %d, actual was %d\n",
    3333                   i, lev);
    34             errorFlag = false;
     34            testStatus = false;
    3535        }
    3636
     
    3939            printf("ERROR: (.) expected trace level was %d, actual was %d\n",
    4040                   i, 3);
    41             errorFlag = false;
     41            testStatus = false;
    4242        }
    4343    }
     
    5151            printf("ERROR: (.NODE00.NODE01) expected trace level was %d, actual was %d\n",
    5252                   i, lev);
    53             errorFlag = false;
     53            testStatus = false;
    5454        }
    5555    }
    5656
    57     printFooter(stderr,
     57    printFooter(stdout,
    5858                "psTrace functions",
    5959                "Testing psSetTraceLevel and psGetTraceLevel",
    60                 errorFlag);
    61     exit(0);
     60                testStatus);
     61    exit(!testStatus);
    6262}
Note: See TracChangeset for help on using the changeset viewer.