forked from qt-creator/qt-creator
SquishTests: Skip too old Qt on Windows
When creating a command line project from wizard we end up with code that is not compilable on Windows when using too old Qt versions. Explicitly do not use the older Qt versions as this fails to build and the whole tests would need to get adapted to handle this appropriate instead. Change-Id: Ia8a253a0c5d8d20ea181dd33dc8d31cb83cb31c3 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
@@ -248,11 +248,16 @@ def createProject_Qt_GUI(path, projectName, checks=True, addToVersionControl="<N
|
||||
# param path specifies where to create the project
|
||||
# param projectName is the name for the new project
|
||||
# param checks turns tests in the function on if set to True
|
||||
def createProject_Qt_Console(path, projectName, checks = True, buildSystem = None):
|
||||
def createProject_Qt_Console(path, projectName, checks = True, buildSystem = None, targets=[]):
|
||||
available = __createProjectOrFileSelectType__(" Application (Qt)", "Qt Console Application")
|
||||
__createProjectSetNameAndPath__(path, projectName, checks)
|
||||
buildSystem = __handleBuildSystem__(buildSystem)
|
||||
__createProjectHandleTranslationSelection__()
|
||||
if targets:
|
||||
available = set(targets).intersection(available)
|
||||
if len(available) < len(targets):
|
||||
test.warning("Could not use all desired targets.",
|
||||
"%s vs %s" % (str(available), str(targets)))
|
||||
__selectQtVersionDesktop__(buildSystem, checks, available)
|
||||
|
||||
expectedFiles = []
|
||||
|
@@ -12,7 +12,11 @@ def main():
|
||||
startQC()
|
||||
if not startedWithoutPluginError():
|
||||
return
|
||||
createProject_Qt_Console(tempDir(), project)
|
||||
targets = []
|
||||
if platform.system() in ('Microsoft', 'Windows'):
|
||||
# Qt5.10 has constructs that do not work on Win because of limitation to older C++
|
||||
targets = [Targets.DESKTOP_5_14_1_DEFAULT, Targets.DESKTOP_6_2_4]
|
||||
createProject_Qt_Console(tempDir(), project, targets=targets)
|
||||
|
||||
mainEditor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
|
||||
replaceEditorContent(mainEditor, "")
|
||||
|
Reference in New Issue
Block a user