VirtualBox

Changeset 69577 in vbox


Ignore:
Timestamp:
Nov 4, 2017 10:19:04 AM (7 years ago)
Author:
vboxsync
Message:

testdriver: dropped the heap checks.

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r69575 r69577  
    816816        self.fEnableDebugger          = True;
    817817
    818         # TEMPORARY: For process heap checking on windows 2012 boxes.
    819         self.fDoHeapChecks = False;
    820         if 'COMPUTERNAME' in os.environ and utils.getHostOs() == 'win':
    821             self.fDoHeapChecks = os.environ['COMPUTERNAME'] in [ 'TESTBOXWIN5', 'WEI01-B6KC-4', 'TESTBOXPILE2', 'SKYLAKE' ];
    822             if self.fDoHeapChecks:
    823                 reporter.log('Will do heap checking...');
    824 
    825818        # Quietly detect build and validation kit.
    826819        self._detectBuild(False);
     
    849842        if self.oBuild is not None:
    850843            self.oBuild.dump();
    851 
    852 
    853     def checkProcessHeap(self):
    854         """
    855         TEMPORARY: Check the process heap on some Windows 2012 server machines to try catch heap corruption issue.
    856         """
    857         if self.fDoHeapChecks:
    858             if sys.platform == 'win32':
    859                 from testdriver import winbase;
    860                 return winbase.checkProcessHeap();
    861         return True;
    862844
    863845
     
    14541436        self.oVBox            = None;
    14551437        vboxcon.goHackModuleClass.oVBoxMgr = None; # VBoxConstantWrappingHack.
    1456         self.checkProcessHeap(); ## TEMPORARY
    14571438
    14581439        # Do garbage collection to try get rid of those objects.
     
    14621443            reporter.logXcpt();
    14631444        self.fImportedVBoxApi = False;
    1464         self.checkProcessHeap(); ## TEMPORARY
    14651445
    14661446        # Check whether the python is still having any COM objects/interfaces around.
     
    15261506            except:
    15271507                reporter.logXcpt();
    1528         self.checkProcessHeap(); ## TEMPORARY
    15291508
    15301509        # Try get the referrers to (XP)COM interfaces and objects that was left behind.
     
    15741553        except:
    15751554            reporter.logXcpt();
    1576         self.checkProcessHeap(); ## TEMPORARY
    15771555        return True;
    15781556
     
    19421920        Only Ctrl-C exception, no return.
    19431921        """
    1944         self.checkProcessHeap(); ## TEMPORARY
    19451922        try:
    19461923            self.oVBoxMgr.waitForEvents(cMsTimeout);
     
    19491926        except:
    19501927            pass;
    1951         self.checkProcessHeap(); ## TEMPORARY
    19521928        return None;
    19531929
     
    22322208        if not self.importVBoxApi():
    22332209            return None;
    2234         self.checkProcessHeap(); ## TEMPORARY
    22352210
    22362211        # create + register the VM
     
    23432318        reporter.log('created "%s" with name "%s"' % (oVM.id, sName));
    23442319        self.aoVMs.append(oVM);
    2345         self.checkProcessHeap(); ## TEMPORARY
    23462320        self.logVmInfo(oVM); # testing...
    2347         self.checkProcessHeap(); ## TEMPORARY
    23482321        return oVM;
    23492322    # pylint: enable=R0913,R0914,R0915
  • trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstOs2.py

    r69555 r69577  
    246246
    247247if __name__ == '__main__':
    248     # sys.exit(tdGuestOsInstOs2().main(sys.argv);
    249     # TEMPORARY hacking.
    250     g_oDrv = tdGuestOsInstOs2();
    251     g_iExitCode = g_oDrv.main(sys.argv);
    252     if g_oDrv.fDoHeapChecks:
    253         from testdriver import winbase;
    254         winbase.checkProcessHeap();
    255         del g_oDrv;
    256         g_oDrv = None;
    257         winbase.checkProcessHeap();
    258         #import gc;
    259         #for oObj in gc.get_objects():
    260         #    if not callable(oObj):
    261         #        reporter.log('type %s: object %s' % (type(oObj), oObj));
    262 
    263     sys.exit(g_iExitCode);
    264 
     248    sys.exit(tdGuestOsInstOs2().main(sys.argv);
     249
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