IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 539


Ignore:
Timestamp:
Apr 27, 2004, 4:49:53 PM (22 years ago)
Author:
desonia
Message:

fixed runTestSuite so that it runs all tests, even if one fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/psTest.c

    r538 r539  
    2626bool p_runTestSuite(FILE *fp, const char* testPointFile, const char* packageName, testDescription tests[])
    2727{
    28     bool failed = false;
     28    bool success = true;
    2929
    3030    for (int index=0; tests[index].fcn != NULL; index++) {
    31         failed = failed || p_runTest(fp,testPointFile,packageName,tests[index].testPointName,
    32                                      tests[index].fcn,tests[index].expectedReturn);
     31        success = p_runTest(fp,testPointFile,packageName,tests[index].testPointName,
     32                            tests[index].fcn,tests[index].expectedReturn) && success;
    3333    }
    34     return failed;
     34    return success;
    3535}
    3636
Note: See TracChangeset for help on using the changeset viewer.