From 25919d902042dbdacb56fc924cdeede407e0be52 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 7 Apr 2016 12:31:32 +0200 Subject: [PATCH] Squish: Don't crash when missing breakpoint Change-Id: I8eba72baa043bebc8618fbfe51fa31d7215165e7 Reviewed-by: Christian Stenger --- tests/system/shared/debugger.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/system/shared/debugger.py b/tests/system/shared/debugger.py index cbaf7027eb4..9263f52d525 100644 --- a/tests/system/shared/debugger.py +++ b/tests/system/shared/debugger.py @@ -141,9 +141,12 @@ def doSimpleDebugging(kitCount, currentKit, currentConfigName, pressContinueCoun verifyBreakPoint(expectedBPOrder[i]) else: test.fail('%s' % str(statusLabel.text)) - contDbg = waitForObject(":*Qt Creator.Continue_Core::Internal::FancyToolButton", 3000) - test.log("Continuing...") - clickButton(contDbg) + try: + contDbg = waitForObject(":*Qt Creator.Continue_Core::Internal::FancyToolButton", 3000) + test.log("Continuing...") + clickButton(contDbg) + except LookupError: + test.fail("Debugger did not stop at breakpoint") waitFor("str(statusLabel.text) == 'Running.'", 5000) timedOut = not waitFor("str(statusLabel.text) in ['Running.', 'Debugger finished.']", 30000) if timedOut: