VirtualBox

Ignore:
Timestamp:
Mar 3, 2023 10:53:30 AM (2 years ago)
Author:
vboxsync
Message:

ValidationKit/tests/api/tdTreeDepth1.py: The test case calls
VirtualBox::openMachine() to supposedly re-register the VM but
this only opens the VM and does not register it. Add the missing
IVirtualBox::registerMachine() calls to register the opened VM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/api/tdTreeDepth1.py

    r98651 r98826  
    142142            else:
    143143                oVM = oVBox.openMachine(sSettingsFile)
     144            oVBox.registerMachine(oVM);
    144145            ## @todo r=klaus: count known hard disk images, should be cImages
    145146
     
    177178            fRc = fRc and oSession.saveSettings()
    178179
    179             # take up to 200 snapshots (255 is the snapshot tree depth limit)
    180             cSnapshots = random.randrange(1, 200); ## @todo r=andy BUGBUG When specifying 254 here, it fails with object 251.
     180            # take up to 200 snapshots (250 is the snapshot tree depth limit (settings.h:SETTINGS_SNAPSHOT_DEPTH_MAX))
     181            cSnapshots = random.randrange(1, 200);
    181182            reporter.log('Taking %d snapshots' % (cSnapshots))
    182183            for i in range(1, cSnapshots + 1):
     
    222223            else:
    223224                oVM = oVBox.openMachine(sSettingsFile)
     225            oVBox.registerMachine(oVM);
    224226            reporter.log('API reports %i snapshots' % (oVM.snapshotCount))
    225227            fRc = fRc and oVM.snapshotCount == cSnapshots
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