Changeset 1193 for trunk/psLib/test/psTest.h
- Timestamp:
- Jul 7, 2004, 3:05:01 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/psTest.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/psTest.h
r637 r1193 20 20 { 21 21 testFcn fcn; 22 int testPointNumber; 22 23 const char* testPointName; 23 24 int expectedReturn; 25 bool isDuplicateEntry; 24 26 } 25 27 testDescription; 26 28 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) \ 30 p_runTest(filePtr, __FILE__, packageName, testPointName, fcn, expectedReturn, useFork) 29 31 30 #define runTestSuite(filePtr, packageName, tests ) \31 p_runTestSuite(filePtr, __FILE__, packageName, tests )32 #define runTestSuite(filePtr, packageName, tests, argc, argv) \ 33 p_runTestSuite(filePtr, __FILE__, packageName, tests, argc, argv) 32 34 33 35 34 36 /////////////////////////// PRIVATE FUNCTIONS ////////////////////////////// 35 37 36 bool p_runTest(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName, 37 testFcn fcn, int expectedReturn); 38 bool 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 ); 38 47 39 bool p_runTestSuite(FILE *fp, const char* testPointFile, const char* packageName, testDescription tests[]); 48 bool p_runTestSuite( 49 FILE *fp, 50 const char* testPointFile, 51 const char* packageName, 52 testDescription tests[], 53 int argc, 54 char * const argv[] 55 ); 40 56 41 void p_printPositiveTestHeader(FILE *fp, const char* testPointFile, const char* packageName, 42 const char* testPointName); 57 void p_printPositiveTestHeader( 58 FILE *fp, 59 const char* testPointFile, 60 const char* packageName, 61 const char* testPointName 62 ); 43 63 44 void p_printNegativeTestHeader(FILE *fp, const char* testPointFile, const char* packageName, 45 const char* testPointName,const char* expectedError, int exitValue); 64 void 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 ); 46 72 47 void p_printFooter(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName, 48 bool success); 73 void p_printFooter( 74 FILE *fp, 75 const char* testPointFile, 76 const char* packageName, 77 const char* testPointName, 78 bool success 79 ); 49 80 50 81 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
