forked from qt-creator/qt-creator
SquishTests: Handle and report missed breakpoint instead of crashing
Change-Id: I28756803149828da871d48303ac0c989a2e99f7e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -91,6 +91,9 @@ def performDebugging(projectName):
|
|||||||
invokeMenuItem("Debug", "Enable or Disable Breakpoint")
|
invokeMenuItem("Debug", "Enable or Disable Breakpoint")
|
||||||
clickButton(waitForObject(":*Qt Creator.Start Debugging_Core::Internal::FancyToolButton"))
|
clickButton(waitForObject(":*Qt Creator.Start Debugging_Core::Internal::FancyToolButton"))
|
||||||
handleDebuggerWarnings(config, isMsvc)
|
handleDebuggerWarnings(config, isMsvc)
|
||||||
clickButton(waitForObject(":*Qt Creator.Continue_Core::Internal::FancyToolButton"))
|
continueButtonStr = ":*Qt Creator.Continue_Core::Internal::FancyToolButton"
|
||||||
|
if test.verify(waitFor(lambda: object.exists(continueButtonStr), 20000),
|
||||||
|
"Did the debugger stop at the breakpoint as expected?"):
|
||||||
|
clickButton(waitForObject(continueButtonStr, 1000))
|
||||||
__handleAppOutputWaitForDebuggerFinish__()
|
__handleAppOutputWaitForDebuggerFinish__()
|
||||||
removeOldBreakpoints()
|
removeOldBreakpoints()
|
||||||
|
Reference in New Issue
Block a user