Changeset 69577 in vbox
- Timestamp:
- Nov 4, 2017 10:19:04 AM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r69575 r69577 816 816 self.fEnableDebugger = True; 817 817 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 825 818 # Quietly detect build and validation kit. 826 819 self._detectBuild(False); … … 849 842 if self.oBuild is not None: 850 843 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;862 844 863 845 … … 1454 1436 self.oVBox = None; 1455 1437 vboxcon.goHackModuleClass.oVBoxMgr = None; # VBoxConstantWrappingHack. 1456 self.checkProcessHeap(); ## TEMPORARY1457 1438 1458 1439 # Do garbage collection to try get rid of those objects. … … 1462 1443 reporter.logXcpt(); 1463 1444 self.fImportedVBoxApi = False; 1464 self.checkProcessHeap(); ## TEMPORARY1465 1445 1466 1446 # Check whether the python is still having any COM objects/interfaces around. … … 1526 1506 except: 1527 1507 reporter.logXcpt(); 1528 self.checkProcessHeap(); ## TEMPORARY1529 1508 1530 1509 # Try get the referrers to (XP)COM interfaces and objects that was left behind. … … 1574 1553 except: 1575 1554 reporter.logXcpt(); 1576 self.checkProcessHeap(); ## TEMPORARY1577 1555 return True; 1578 1556 … … 1942 1920 Only Ctrl-C exception, no return. 1943 1921 """ 1944 self.checkProcessHeap(); ## TEMPORARY1945 1922 try: 1946 1923 self.oVBoxMgr.waitForEvents(cMsTimeout); … … 1949 1926 except: 1950 1927 pass; 1951 self.checkProcessHeap(); ## TEMPORARY1952 1928 return None; 1953 1929 … … 2232 2208 if not self.importVBoxApi(): 2233 2209 return None; 2234 self.checkProcessHeap(); ## TEMPORARY2235 2210 2236 2211 # create + register the VM … … 2343 2318 reporter.log('created "%s" with name "%s"' % (oVM.id, sName)); 2344 2319 self.aoVMs.append(oVM); 2345 self.checkProcessHeap(); ## TEMPORARY2346 2320 self.logVmInfo(oVM); # testing... 2347 self.checkProcessHeap(); ## TEMPORARY2348 2321 return oVM; 2349 2322 # pylint: enable=R0913,R0914,R0915 -
trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstOs2.py
r69555 r69577 246 246 247 247 if __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.