Changeset 2273 for trunk/psLib/test/psTest.c
- Timestamp:
- Nov 3, 2004, 3:05:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/psTest.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/psTest.c
r2204 r2273 85 85 runAll = false; 86 86 if ( sscanf( optarg, "%i", &n ) != 1 ) { 87 psError( __func__, "Failed to parse the testpoint number (%s).",88 optarg );87 psError(PS_ERR_UNKNOWN, true, "Failed to parse the testpoint number (%s).", 88 optarg ); 89 89 break; 90 90 } … … 103 103 } 104 104 if ( ! found ) { 105 psError( __func__, "The specified testpoint number (%d) doesn't exist in this test driver.",106 n );105 psError(PS_ERR_UNKNOWN, true, "The specified testpoint number (%d) doesn't exist in this test driver.", 106 n ); 107 107 break; 108 108 } 109 109 break; 110 110 case '?': 111 psError( __func__, "Option %s is not recognized and is ignored.", optarg );111 psError(PS_ERR_UNKNOWN, true, "Option %s is not recognized and is ignored.", optarg ); 112 112 break; 113 113 } … … 130 130 131 131 if ( ! success ) { 132 psError( testPointFile, "One or more tests failed" ); 132 psError( PS_ERR_UNKNOWN, true, 133 "One or more tests failed" ); 133 134 } 134 135 … … 151 152 if ( retVal == 0 ) { // only bother checking memory if test executed to end. 152 153 if ( psMemCheckLeaks( currentId, NULL, stderr ) != 0 ) { 153 psError( __func__, "Memory Leaks Detected" );154 psError(PS_ERR_UNKNOWN, true, "Memory Leaks Detected" ); 154 155 retVal = 64; 155 156 } … … 175 176 if ( childReturn == 0 ) { // only bother checking memory if test executed to end. 176 177 if ( psMemCheckLeaks( currentId, NULL, stderr ) != 0 ) { 177 psError( __func__, "Memory Leaks Detected" );178 psError(PS_ERR_UNKNOWN, true, "Memory Leaks Detected" ); 178 179 childReturn = 64; 179 180 }
Note:
See TracChangeset
for help on using the changeset viewer.
