Changeset 2204 for trunk/psLib/test/psTest.h
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/psTest.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/psTest.h
r1193 r2204 4 4 5 5 #include <stdio.h> 6 #include <stdbool.h> 6 7 #include "psType.h" 7 8 8 9 #define printPositiveTestHeader(filePtr, packageName, testPointName) \ … … 15 16 p_printFooter(filePtr, __FILE__, packageName, testPointName, success) 16 17 17 typedef int(*testFcn)(void);18 typedef psS32 (*testFcn)(void); 18 19 19 20 typedef struct 20 21 { 21 22 testFcn fcn; 22 inttestPointNumber;23 psS32 testPointNumber; 23 24 const char* testPointName; 24 intexpectedReturn;25 boolisDuplicateEntry;25 psS32 expectedReturn; 26 psBool isDuplicateEntry; 26 27 } 27 28 testDescription; … … 36 37 /////////////////////////// PRIVATE FUNCTIONS ////////////////////////////// 37 38 38 bool p_runTest(39 psBool p_runTest( 39 40 FILE *fp, 40 41 const char* testPointFile, … … 42 43 const char* testPointName, 43 44 testFcn fcn, 44 intexpectedReturn,45 bool useFork45 psS32 expectedReturn, 46 psBool useFork 46 47 ); 47 48 48 bool p_runTestSuite(49 psBool p_runTestSuite( 49 50 FILE *fp, 50 51 const char* testPointFile, 51 52 const char* packageName, 52 53 testDescription tests[], 53 intargc,54 psS32 argc, 54 55 char * const argv[] 55 56 ); … … 68 69 const char* testPointName, 69 70 const char* expectedError, 70 intexitValue71 psS32 exitValue 71 72 ); 72 73 … … 76 77 const char* packageName, 77 78 const char* testPointName, 78 bool success79 psBool success 79 80 ); 80 81
Note:
See TracChangeset
for help on using the changeset viewer.
