Changeset 50439 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Feb 13, 2014 10:12:16 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92242
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstVBoxAPI.cpp
r50397 r50439 39 39 *******************************************************************************/ 40 40 static RTTEST g_hTest; 41 static Bstr tstMachineName = "tstVBoxAPI test VM"; 41 42 42 43 … … 54 55 55 56 56 57 57 static BOOL tstApiIVirtualBox(IVirtualBox *pVBox) 58 58 { … … 121 121 RTTestSub(g_hTest, "IVirtualBox::CreateMachine"); 122 122 ComPtr<IMachine> ptrMachine; 123 Bstr tstMachineName = "tstVBoxAPI test VM";124 123 com::SafeArray<BSTR> groups; 125 124 /** Default VM settings */ … … 181 180 { 182 181 Bstr tmpName; 183 CHECK_ERROR(machines[i], COMGETTER(Name)(tmpName.asOutParam()));182 rc = machines[i]->COMGETTER(Name)(tmpName.asOutParam()); 184 183 if (SUCCEEDED(rc)) 185 184 { … … 333 332 RTTestFailed(g_hTest, "%d: IVirtualBox::genericNetworkDrivers failed", __LINE__); 334 333 334 return TRUE; 335 } 336 337 338 static BOOL tstApiClean(IVirtualBox *pVBox) 339 { 340 HRESULT rc; 341 335 342 /** Delete created VM and its files */ 336 343 ComPtr<IMachine> machine; … … 345 352 return TRUE; 346 353 } 347 348 354 349 355 … … 379 385 /** Test IVirtualBox interface */ 380 386 tstApiIVirtualBox(ptrVBox); 387 388 389 /** Clean files/configs */ 390 tstApiClean(ptrVBox); 381 391 } 382 392 }
Note:
See TracChangeset
for help on using the changeset viewer.