Changeset 2204 for trunk/psLib/test/sysUtils/tst_psError.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psError.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psError.c
r2129 r2204 13 13 * @author Eric Van Alst, MHPCC 14 14 * 15 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $16 * @date $Date: 2004-10- 14 21:14:58$15 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-10-27 00:57:33 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 26 26 #include "psTest.h" 27 27 28 static inttestError00(void);29 static inttestError01(void);30 static inttestError02(void);31 static inttestError03(void);32 static inttestError04(void);33 static inttestError05(void);34 static inttestErrorRegister(void);28 static psS32 testError00(void); 29 static psS32 testError01(void); 30 static psS32 testError02(void); 31 static psS32 testError03(void); 32 static psS32 testError04(void); 33 static psS32 testError05(void); 34 static psS32 testErrorRegister(void); 35 35 36 36 // Function used in testError02 to verify the psErrorStackPrintV function … … 58 58 }; 59 59 60 int main( intargc, char* argv[] )60 psS32 main( psS32 argc, char* argv[] ) 61 61 { 62 62 psLogSetLevel( PS_LOG_INFO ); … … 65 65 } 66 66 67 static inttestError05(void)67 static psS32 testError05(void) 68 68 { 69 69 psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE; … … 81 81 } 82 82 83 static inttestError04(void)83 static psS32 testError04(void) 84 84 { 85 85 psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE; … … 134 134 } 135 135 136 static inttestError03(void)136 static psS32 testError03(void) 137 137 { 138 138 psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE; … … 214 214 } 215 215 216 static inttestError02(void)216 static psS32 testError02(void) 217 217 { 218 218 psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE; … … 228 228 } 229 229 230 static inttestError01(void)230 static psS32 testError01(void) 231 231 { 232 232 psErrorCode code=PS_ERR_BAD_PARAMETER_VALUE; … … 277 277 } 278 278 279 static inttestError00(void)280 { 281 282 intintval=1;283 longlongval = 2;279 static psS32 testError00(void) 280 { 281 282 psS32 intval=1; 283 psS64 longval = 2; 284 284 float floatval = 3.01; 285 285 char charval = 'E'; … … 300 300 } 301 301 302 static inttestErrorRegister(void)303 { 304 305 intnumErr = 4;302 static psS32 testErrorRegister(void) 303 { 304 305 psS32 numErr = 4; 306 306 psErrorDescription errDesc[] = { {PS_ERR_N_ERR_CLASSES+1,"first"}, 307 307 {PS_ERR_N_ERR_CLASSES+2,"second"}, … … 314 314 psErrorRegister(errDesc,numErr); 315 315 316 for ( inti = 0; i < numErr; i++) {316 for (psS32 i = 0; i < numErr; i++) { 317 317 const char* desc = psErrorCodeString(PS_ERR_N_ERR_CLASSES+1+i); 318 318 if (desc == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
