IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2004, 3:05:01 PM (22 years ago)
Author:
desonia
Message:

rewrote psImageCopy so that macro need not be expanded.

File:
1 edited

Legend:

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

    r637 r1193  
    2020{
    2121    testFcn     fcn;
     22    int         testPointNumber;
    2223    const char* testPointName;
    2324    int         expectedReturn;
     25    bool        isDuplicateEntry;
    2426}
    2527testDescription;
    2628
    27 #define runTest(filePtr, packageName, testPointName, fcn, expectedReturn) \
    28 p_runTest(filePtr, __FILE__, packageName, testPointName, fcn, expectedReturn)
     29#define runTest(filePtr, packageName, testPointName, fcn, expectedReturn, useFork) \
     30p_runTest(filePtr, __FILE__, packageName, testPointName, fcn, expectedReturn, useFork)
    2931
    30 #define runTestSuite(filePtr, packageName, tests) \
    31 p_runTestSuite(filePtr, __FILE__, packageName, tests)
     32#define runTestSuite(filePtr, packageName, tests, argc, argv) \
     33p_runTestSuite(filePtr, __FILE__, packageName, tests, argc, argv)
    3234
    3335
    3436/////////////////////////// PRIVATE FUNCTIONS //////////////////////////////
    3537
    36 bool p_runTest(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName,
    37                testFcn fcn, int expectedReturn);
     38bool p_runTest(
     39    FILE *fp,
     40    const char* testPointFile,
     41    const char* packageName,
     42    const char* testPointName,
     43    testFcn fcn,
     44    int expectedReturn,
     45    bool useFork
     46);
    3847
    39 bool p_runTestSuite(FILE *fp, const char* testPointFile, const char* packageName, testDescription tests[]);
     48bool p_runTestSuite(
     49    FILE *fp,
     50    const char* testPointFile,
     51    const char* packageName,
     52    testDescription tests[],
     53    int argc,
     54    char * const argv[]
     55);
    4056
    41 void p_printPositiveTestHeader(FILE *fp, const char* testPointFile, const char* packageName,
    42                                const char* testPointName);
     57void p_printPositiveTestHeader(
     58    FILE *fp,
     59    const char* testPointFile,
     60    const char* packageName,
     61    const char* testPointName
     62);
    4363
    44 void p_printNegativeTestHeader(FILE *fp, const char* testPointFile, const char* packageName,
    45                                const char* testPointName,const char* expectedError, int exitValue);
     64void p_printNegativeTestHeader(
     65    FILE *fp,
     66    const char* testPointFile,
     67    const char* packageName,
     68    const char* testPointName,
     69    const char* expectedError,
     70    int exitValue
     71);
    4672
    47 void p_printFooter(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName,
    48                    bool success);
     73void p_printFooter(
     74    FILE *fp,
     75    const char* testPointFile,
     76    const char* packageName,
     77    const char* testPointName,
     78    bool success
     79);
    4980
    5081#endif
Note: See TracChangeset for help on using the changeset viewer.