Commit 80ef8d11 authored by Robert Loehning's avatar Robert Loehning Committed by Robert Loehning

Squish: Handle failing startApplication() without ClangCodeModel

Change-Id: Ic50939219c8dcf2b04423d99d0d5021de8f26afc
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent 0e299cbd
......@@ -24,8 +24,17 @@
############################################################################
def startCreatorTryingClang():
# start Qt Creator with enabled ClangCodeModel plugin (without modifying settings)
startApplication("qtcreator -load ClangCodeModel" + SettingsPath)
try:
# start Qt Creator with enabled ClangCodeModel plugin (without modifying settings)
startApplication("qtcreator -load ClangCodeModel" + SettingsPath)
except RuntimeError:
t, v = sys.exc_info()[:2]
strv = str(v)
if strv == "startApplication() failed":
test.fatal("%s. Creator built without ClangCodeModel?" % strv)
else:
test.fatal("Exception caught", "%s(%s)" % (str(t), strv))
return False
errorMsg = "{type='QMessageBox' unnamed='1' visible='1' windowTitle='Qt Creator'}"
errorOK = "{text='OK' type='QPushButton' unnamed='1' visible='1' window=%s}" % errorMsg
if not waitFor("object.exists(errorOK)", 5000):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment