Changeset 62724 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Jul 30, 2016 12:08:44 AM (8 years ago)
- Location:
- trunk/src/VBox/Runtime/testcase
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstLdr-2.cpp
r62477 r62724 71 71 * @param pvUser User argument. 72 72 */ 73 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 74 { 73 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, 74 RTUINTPTR *pValue, void *pvUser) 75 { 76 RT_NOREF5(hLdrMod, pszModule, pszSymbol, uSymbol, pvUser); 75 77 /* check the name format and only permit certain names */ 76 78 *pValue = 0xf0f0f0f0; -
trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp
r62477 r62724 73 73 static DECLCALLBACK(int) testEnumSymbol2(RTLDRMOD hLdrMod, const char *pszSymbol, unsigned uSymbol, RTUINTPTR Value, void *pvUser) 74 74 { 75 RT_NOREF1(hLdrMod); 75 76 PTESTNEARSYM pSym = (PTESTNEARSYM)pvUser; 76 77 … … 129 130 void *pvUser) 130 131 { 132 RT_NOREF3(pCpu, u32Sel, pvUser); 133 131 134 if ( uAddress > RTLdrSize(g_hLdrMod) + g_uLoadAddr 132 135 || uAddress < g_uLoadAddr) … … 149 152 static DECLCALLBACK(int) MyReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) 150 153 { 154 RT_NOREF1(cbMaxRead); 151 155 uint8_t const *pbSrc = (uint8_t const *)((uintptr_t)pDis->uInstrAddr + (uintptr_t)pDis->pvUser + offInstr); 152 156 memcpy(&pDis->abInstr[offInstr], pbSrc, cbMinRead); … … 207 211 * @param pvUser User argument. 208 212 */ 209 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 210 { 213 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, 214 unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 215 { 216 RT_NOREF5(hLdrMod, pszModule, pszSymbol, uSymbol, pvUser); 211 217 #if 1 212 218 RTUINTPTR BaseAddr = *(PCRTUINTPTR)pvUser; … … 233 239 static DECLCALLBACK(int) testEnumSymbol1(RTLDRMOD hLdrMod, const char *pszSymbol, unsigned uSymbol, RTUINTPTR Value, void *pvUser) 234 240 { 241 RT_NOREF2(hLdrMod, pvUser); 235 242 RTPrintf(" %RTptr %s (%d)\n", Value, pszSymbol, uSymbol); 236 243 return VINF_SUCCESS; -
trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp
r62477 r62724 57 57 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 58 58 { 59 RT_NOREF4(hLdrMod, pszModule, uSymbol, pvUser); 59 60 if ( !strcmp(pszSymbol, "RTAssertMsg1Weak") || !strcmp(pszSymbol, "_RTAssertMsg1Weak")) 60 61 *pValue = (uintptr_t)RTAssertMsg1Weak; -
trunk/src/VBox/Runtime/testcase/tstRTHttp.cpp
r62477 r62724 195 195 int main(int argc, char **argv) 196 196 { 197 unsigned cErrors = 0;197 //unsigned cErrors = 0; 198 198 199 199 RTR3InitExe(argc, &argv, 0); -
trunk/src/VBox/Runtime/testcase/tstRTS3.cpp
r62477 r62724 60 60 #ifdef TSTS3_SHOWPROGRESS 61 61 RTTestIPrintf(RTTESTLVL_ALWAYS, " Progress for %s - %d%% done.\n", (char*)pvUser, (int)uPercent); 62 #endif /* TSTS3_SHOWPROGRESS */ 62 #else 63 RT_NOREF2(uPercent, pvUser); 64 #endif 63 65 return VINF_SUCCESS; 64 66 } -
trunk/src/VBox/Runtime/testcase/tstRTVfs.cpp
r62477 r62724 85 85 int main(int argc, char **argv) 86 86 { 87 RT_NOREF2(argc, argv); 88 87 89 /* 88 90 * Initialize IPRT and create the test. -
trunk/src/VBox/Runtime/testcase/tstTSC.cpp
r62477 r62724 419 419 { "--calc-frequency", 'f', RTGETOPT_REQ_NOTHING }, 420 420 }; 421 int iArg = 1;422 421 int ch; 423 422 RTGETOPTUNION Value; -
trunk/src/VBox/Runtime/testcase/tstVector.cpp
r62477 r62724 78 78 RTVEC_DECL(tstSimple, void *) 79 79 80 static void testVectorSimple( RTTEST hTest)80 static void testVectorSimple(void) 81 81 { 82 82 RTTestISub("Vector structure, no cleanup callback"); … … 142 142 RTVEC_DECL_DELETE(tstDelete, void *, deletePVoid) 143 143 144 static void testVectorDelete( RTTEST hTest)144 static void testVectorDelete(void) 145 145 { 146 146 RTTestISub("Vector structure with cleanup by pointer callback"); … … 181 181 RTVEC_DECL_DELETE_BY_VALUE(tstDeleteValue, void *, deletePVoidValue) 182 182 183 static void testVectorDeleteValue( RTTEST hTest)183 static void testVectorDeleteValue(void) 184 184 { 185 185 RTTestISub("Vector structure with cleanup by value callback"); … … 228 228 return rcExit; 229 229 230 testVectorSimple( hTest);231 testVectorDelete( hTest);232 testVectorDeleteValue( hTest);230 testVectorSimple(); 231 testVectorDelete(); 232 testVectorDeleteValue(); 233 233 234 234 return RTTestSummaryAndDestroy(hTest);
Note:
See TracChangeset
for help on using the changeset viewer.