Changeset 538 for trunk/psLib/test/psTest.h
- Timestamp:
- Apr 27, 2004, 4:31:54 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/psTest.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/psTest.h
r526 r538 15 15 p_printFooter(filePtr, __FILE__, packageName, testPointName, success) 16 16 17 typedef int (*testFcn)(void); 18 19 typedef struct 20 { 21 testFcn fcn; 22 const char* testPointName; 23 int expectedReturn; 24 } 25 testDescription; 26 27 #define runTest(filePtr, packageName, testPointName, fcn, expectedReturn) \ 28 p_runTest(filePtr, __FILE__, packageName, testPointName, fcn, expectedReturn) 29 30 #define runTestSuite(filePtr, packageName, tests) \ 31 p_runTestSuite(filePtr, __FILE__, packageName, tests) 32 17 33 18 34 /////////////////////////// PRIVATE FUNCTIONS ////////////////////////////// 19 35 20 void p_printPositiveTestHeader(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName); 36 bool p_runTest(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName, 37 testFcn fcn, int expectedReturn); 38 39 bool p_runTestSuite(FILE *fp, const char* testPointFile, const char* packageName, testDescription tests[]); 40 41 void p_printPositiveTestHeader(FILE *fp, const char* testPointFile, const char* packageName, 42 const char* testPointName); 21 43 22 44 void p_printNegativeTestHeader(FILE *fp, const char* testPointFile, const char* packageName, 23 45 const char* testPointName,const char* expectedError, int exitValue); 24 46 25 void p_printFooter(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName, bool 26 success); 47 void p_printFooter(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName, 48 bool success); 49 27 50 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
