Changeset 46299 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- May 28, 2013 3:29:28 PM (12 years ago)
- Location:
- trunk/src/VBox/VMM/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstVMM.cpp
r45664 r46299 194 194 * Init runtime and the test environment. 195 195 */ 196 int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);197 if (RT_FAILURE(rc))198 return RTMsgInitFailure(rc);199 196 RTTEST hTest; 200 rc = RTTestCreate("tstVMM", &hTest); 201 if (RT_FAILURE(rc)) 202 { 203 RTPrintf("tstVMM: RTTestCreate failed: %Rrc\n", rc); 204 return 1; 205 } 197 RTEXITCODE rcExit = RTTestInitExAndCreate(argc, &argv, RTR3INIT_FLAGS_SUPLIB, "tstVMM", &hTest); 198 if (rcExit != RTEXITCODE_SUCCESS) 199 return rcExit; 206 200 207 201 /* … … 261 255 PVM pVM; 262 256 PUVM pUVM; 263 rc = VMR3Create(g_cCpus, NULL, NULL, NULL, tstVMMConfigConstructor, NULL, &pVM, &pUVM);257 int rc = VMR3Create(g_cCpus, NULL, NULL, NULL, tstVMMConfigConstructor, NULL, &pVM, &pUVM); 264 258 if (RT_SUCCESS(rc)) 265 259 { -
trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp
r45828 r46299 146 146 */ 147 147 RTTEST hTest; 148 int rc; 149 if ( RT_FAILURE(rc = RTR3InitExeNoArguments(0)) 150 || RT_FAILURE(rc = RTTestCreate("tstVMMR0CallHost-1", &hTest))) 151 { 152 RTStrmPrintf(g_pStdErr, "tstVMMR0CallHost-1: Fatal error during init: %Rrc\n", rc); 153 return 1; 154 } 148 RTEXITCODE rcExit = RTTestInitAndCreate("tstVMMR0CallHost-1", &hTest); 149 if (rcExit != RTEXITCODE_SUCCESS) 150 return rcExit; 155 151 RTTestBanner(hTest); 156 152
Note:
See TracChangeset
for help on using the changeset viewer.