Squish: Fix __startDebugger__()

Change-Id: I1f87346ad12f4a6e749042b3c1bcabbc71bdbf7a
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2013-08-19 18:04:16 +02:00
parent 19bc8442c6
commit 01b3e1fa54

View File

@@ -176,9 +176,8 @@ def __startDebugger__(kitCount, currentKit, config):
isMsvcBuild = isMsvcConfig(kitCount, currentKit) isMsvcBuild = isMsvcConfig(kitCount, currentKit)
clickButton(waitForObject(":*Qt Creator.Start Debugging_Core::Internal::FancyToolButton")) clickButton(waitForObject(":*Qt Creator.Start Debugging_Core::Internal::FancyToolButton"))
handleDebuggerWarnings(config, isMsvcBuild) handleDebuggerWarnings(config, isMsvcBuild)
hasNotTimedOut = waitFor("object.exists(':Debugger Toolbar.Continue_QToolButton')", 60000)
try: try:
mBox = findObject(":Failed to start application_QMessageBox") mBox = waitForObject(":Failed to start application_QMessageBox", 5000)
mBoxText = mBox.text mBoxText = mBox.text
mBoxIText = mBox.informativeText mBoxIText = mBox.informativeText
clickButton(":DebugModeWidget.OK_QPushButton") clickButton(":DebugModeWidget.OK_QPushButton")
@@ -188,10 +187,8 @@ def __startDebugger__(kitCount, currentKit, config):
return False return False
except: except:
pass pass
if hasNotTimedOut: if not test.verify(waitFor("object.exists(':Debugger Toolbar.Continue_QToolButton')", 60000),
test.passes("Debugger started...") "Verify start of debugger"):
else:
test.fail("Debugger seems to have not started...")
if "MSVC" in config: if "MSVC" in config:
debuggerLog = takeDebuggerLog() debuggerLog = takeDebuggerLog()
if "lib\qtcreatorcdbext64\qtcreatorcdbext.dll cannot be found." in debuggerLog: if "lib\qtcreatorcdbext64\qtcreatorcdbext.dll cannot be found." in debuggerLog: