From 70538bf38ce4f75dd5c2c114ea559db8a8977ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Thu, 6 Jun 2024 21:59:26 +0200 Subject: [PATCH] SquishTests: Handle and report missed breakpoint instead of crashing Change-Id: I28756803149828da871d48303ac0c989a2e99f7e Reviewed-by: Christian Stenger --- tests/system/suite_debugger/tst_debug_empty_main/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/system/suite_debugger/tst_debug_empty_main/test.py b/tests/system/suite_debugger/tst_debug_empty_main/test.py index d62f76cdebf..2d166d2a876 100644 --- a/tests/system/suite_debugger/tst_debug_empty_main/test.py +++ b/tests/system/suite_debugger/tst_debug_empty_main/test.py @@ -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()