Commit 6578a9ba authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Fix handleDebuggerWarnings()

Change-Id: Ib4550e82e0acfa168003f64d91bf25af62a533fa
Reviewed-by: default avatarChristian Stenger <>
parent 66bbfd9f
......@@ -49,11 +49,12 @@ def handleDebuggerWarnings(config, isMsvcBuild=False):
except LookupError:
pass # No warning. Fine.
if "Release" in config and (isMsvcBuild or platform.system() == "Linux"):
message = waitForObject("{container=':Qt Creator.DebugModeWidget_QSplitter' name='qt_msgbox_label' type='QLabel' visible='1'}")
msgBox = "{type='QMessageBox' unnamed='1' visible='1' windowTitle='Warning'}"
message = waitForObject("{name='qt_msgbox_label' type='QLabel' visible='1' window=%s}" % msgBox)
messageText = str(message.text)
test.verify(messageText.startswith('This does not seem to be a "Debug" build.\nSetting breakpoints by file name and line number may fail.'),
"Got warning: %s" % messageText)
clickButton("{container=':Qt Creator.DebugModeWidget_QSplitter' text='OK' type='QPushButton' unnamed='1' visible='1'}")
clickButton("{text='OK' type='QPushButton' unnamed='1' visible='1' window=%s}" % msgBox)
def takeDebuggerLog():
invokeMenuItem("Window", "Views", "Debugger Log")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment