Changeset 30931 in vbox
- Timestamp:
- Jul 20, 2010 3:05:18 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63799
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r30929 r30931 6021 6021 if (fCloseMedia) 6022 6022 { 6023 // call backup before iterating over the media, because backup WILL change 6024 // the pointers and invalidate iterators (grrrrr) 6025 setModified(IsModified_Storage); 6026 mMediaData.backup(); // do not call this or iterators will be invalidated 6027 6023 6028 // caller wants automatic detachment: then do that and report all media to the array 6024 6029 MediaData::AttachmentList::iterator it = mMediaData->mAttachments.begin(); … … 6030 6035 if (!pMedium.isNull()) 6031 6036 llMedia.push_back(pMedium); 6032 6033 setModified(IsModified_Storage);6034 mMediaData.backup();6035 6037 6036 6038 // for non-hard disk media, detach straight away … … 6039 6041 pMedium->detachFrom(mData->mUuid); 6040 6042 6041 // remove this attachment; erase() returns the iterator of the next element6043 // remove this attachment; erase() returns the iterator behind the thing that got deleted 6042 6044 it = mMediaData->mAttachments.erase(it); 6043 } 6045 }; 6044 6046 } 6045 6047 else -
trunk/src/VBox/Main/testcase/Makefile.kmk
r30876 r30931 93 93 ovf-dummy.vmdk \ 94 94 ovf-joomla-0.9/joomla-1.1.4-ovf.ovf=>ovf-joomla-0.9/joomla-1.1.4-ovf.ovf \ 95 ovf-winhost-audio-nodisks/WinXP.ovf=>ovf-winhost-audio-nodisks/WinXP.ovf \ 95 96 ovf-winxp-vbox-sharedfolders/winxp.ovf=>ovf-winxp-vbox-sharedfolders/winxp.ovf 96 97 endif -
trunk/src/VBox/Main/testcase/tstOVF.cpp
r30929 r30931 309 309 EventQueue eventQ; 310 310 311 // for each testcase, we will copy the dummy VMDK image to the subdirectory with the OVF testcase 312 // so that the import will find the disks it expects; this is just for testing the import since 313 // the imported machines will obviously not be usable. 314 // llFiles2Delete receives the paths of all the files that we need to clean up later. 315 311 316 // testcase 1: import ovf-joomla-0.9/joomla-1.1.4-ovf.ovf 312 317 copyDummyDiskImage("joomla-0.9", llFiles2Delete, "ovf-testcases/ovf-joomla-0.9/joomla-1.1.4-ovf-0.vmdk"); … … 318 323 copyDummyDiskImage("winxp-vbox-sharedfolders", llFiles2Delete, "ovf-testcases/ovf-winxp-vbox-sharedfolders/smallvdi.vmdk"); 319 324 importOVF("winxp-vbox-sharedfolders", pVirtualBox, "ovf-testcases/ovf-winxp-vbox-sharedfolders/winxp.ovf", llMachinesCreated); 325 326 // testcase 3: import ovf-winxp-vbox-sharedfolders/winxp.ovf 327 importOVF("winhost-audio-nodisks", pVirtualBox, "ovf-testcases/ovf-winhost-audio-nodisks/WinXP.ovf", llMachinesCreated); 320 328 321 329 RTPrintf("Machine imports done, no errors. Cleaning up...\n");
Note:
See TracChangeset
for help on using the changeset viewer.