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:
Robert Löhning
2024-06-06 21:59:26 +02:00
parent becb0af00a
commit 70538bf38c

View File

@@ -91,6 +91,9 @@ def performDebugging(projectName):
invokeMenuItem("Debug", "Enable or Disable Breakpoint")
clickButton(waitForObject(":*Qt Creator.Start Debugging_Core::Internal::FancyToolButton"))
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__()
removeOldBreakpoints()