VirtualBox

Changeset 30931 in vbox


Ignore:
Timestamp:
Jul 20, 2010 3:05:18 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63799
Message:

Main/OVF: add testcase for host-specific audio drivers

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r30929 r30931  
    60216021    if (fCloseMedia)
    60226022    {
     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
    60236028        // caller wants automatic detachment: then do that and report all media to the array
    60246029        MediaData::AttachmentList::iterator it = mMediaData->mAttachments.begin();
     
    60306035            if (!pMedium.isNull())
    60316036                llMedia.push_back(pMedium);
    6032 
    6033             setModified(IsModified_Storage);
    6034             mMediaData.backup();
    60356037
    60366038            // for non-hard disk media, detach straight away
     
    60396041                pMedium->detachFrom(mData->mUuid);
    60406042
    6041             // remove this attachment; erase() returns the iterator of the next element
     6043            // remove this attachment; erase() returns the iterator behind the thing that got deleted
    60426044            it = mMediaData->mAttachments.erase(it);
    6043         }
     6045        };
    60446046    }
    60456047    else
  • trunk/src/VBox/Main/testcase/Makefile.kmk

    r30876 r30931  
    9393        ovf-dummy.vmdk \
    9494        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 \
    9596        ovf-winxp-vbox-sharedfolders/winxp.ovf=>ovf-winxp-vbox-sharedfolders/winxp.ovf
    9697endif
  • trunk/src/VBox/Main/testcase/tstOVF.cpp

    r30929 r30931  
    309309        EventQueue eventQ;
    310310
     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
    311316        // testcase 1: import ovf-joomla-0.9/joomla-1.1.4-ovf.ovf
    312317        copyDummyDiskImage("joomla-0.9", llFiles2Delete, "ovf-testcases/ovf-joomla-0.9/joomla-1.1.4-ovf-0.vmdk");
     
    318323        copyDummyDiskImage("winxp-vbox-sharedfolders", llFiles2Delete, "ovf-testcases/ovf-winxp-vbox-sharedfolders/smallvdi.vmdk");
    319324        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);
    320328
    321329        RTPrintf("Machine imports done, no errors. Cleaning up...\n");
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette