forked from qt-creator/qt-creator
Squish: Don't crash when missing breakpoint
Change-Id: I8eba72baa043bebc8618fbfe51fa31d7215165e7 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -141,9 +141,12 @@ def doSimpleDebugging(kitCount, currentKit, currentConfigName, pressContinueCoun
|
|||||||
verifyBreakPoint(expectedBPOrder[i])
|
verifyBreakPoint(expectedBPOrder[i])
|
||||||
else:
|
else:
|
||||||
test.fail('%s' % str(statusLabel.text))
|
test.fail('%s' % str(statusLabel.text))
|
||||||
contDbg = waitForObject(":*Qt Creator.Continue_Core::Internal::FancyToolButton", 3000)
|
try:
|
||||||
test.log("Continuing...")
|
contDbg = waitForObject(":*Qt Creator.Continue_Core::Internal::FancyToolButton", 3000)
|
||||||
clickButton(contDbg)
|
test.log("Continuing...")
|
||||||
|
clickButton(contDbg)
|
||||||
|
except LookupError:
|
||||||
|
test.fail("Debugger did not stop at breakpoint")
|
||||||
waitFor("str(statusLabel.text) == 'Running.'", 5000)
|
waitFor("str(statusLabel.text) == 'Running.'", 5000)
|
||||||
timedOut = not waitFor("str(statusLabel.text) in ['Running.', 'Debugger finished.']", 30000)
|
timedOut = not waitFor("str(statusLabel.text) in ['Running.', 'Debugger finished.']", 30000)
|
||||||
if timedOut:
|
if timedOut:
|
||||||
|
Reference in New Issue
Block a user