aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@theqtcompany.com>2015-12-07 12:00:09 +0100
committerRobert Loehning <robert.loehning@theqtcompany.com>2015-12-07 13:41:20 +0000
commit89d8693107e55800e466a5edf5d9454ad1f87c6d (patch)
treebf0191b5b23b81c007fda97df5fdb896efe484ae
parent7c08f5a9b0777e606b09bf548a973f2c0818b9ba (diff)
Squish: Work around bugs in tst_cli_output_console
Change-Id: Ief5f731b3ff84dcbd34f4200acbe2646847c0f1c Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r--tests/system/shared/classes.py5
-rw-r--r--tests/system/shared/workarounds.py11
-rw-r--r--tests/system/suite_debugger/tst_cli_output_console/test.py6
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/system/shared/classes.py b/tests/system/shared/classes.py
index ff013241c6..e5cf6abb7d 100644
--- a/tests/system/shared/classes.py
+++ b/tests/system/shared/classes.py
@@ -50,6 +50,11 @@ class Targets:
return desktopTargets
@staticmethod
+ def qt4Classes():
+ return (Targets.DESKTOP_474_GCC & Targets.DESKTOP_480_DEFAULT
+ & Targets.SIMULATOR & Targets.EMBEDDED_LINUX)
+
+ @staticmethod
def getStringForTarget(target):
if target == Targets.DESKTOP_474_GCC:
return "Desktop 474 GCC"
diff --git a/tests/system/shared/workarounds.py b/tests/system/shared/workarounds.py
index 29ec1e281f..cea2ced11a 100644
--- a/tests/system/shared/workarounds.py
+++ b/tests/system/shared/workarounds.py
@@ -261,6 +261,7 @@ class JIRA:
def __initBugDict__(self):
self.__bugs__= {
'QTCREATORBUG-6853':self._workaroundCreator6853_,
+ 'QTCREATORBUG-15456':self._workaroundCreator15456_,
}
# helper function - will be called if no workaround for the requested bug is deposited
def _exitFatal_(self, bugType, number):
@@ -271,3 +272,13 @@ class JIRA:
def _workaroundCreator6853_(self, *args):
if "Release" in args[0] and platform.system() == "Linux":
snooze(2)
+
+ def _workaroundCreator15456_(self, *args):
+ isMsvc = args[0]
+ isQt5 = args[1]
+ config = args[2]
+ if isMsvc and isQt5 and config != "Release":
+ unexpectedExitMessage = ("{type='QMessageBox' unnamed='1' visible='1' "
+ "windowTitle='Unexpected CDB Exit'}")
+ clickButton(waitForObject("{text='OK' type='QPushButton' unnamed='1' "
+ "visible='1' window=%s}" % unexpectedExitMessage))
diff --git a/tests/system/suite_debugger/tst_cli_output_console/test.py b/tests/system/suite_debugger/tst_cli_output_console/test.py
index a3886cd075..81ce1566ae 100644
--- a/tests/system/suite_debugger/tst_cli_output_console/test.py
+++ b/tests/system/suite_debugger/tst_cli_output_console/test.py
@@ -63,6 +63,10 @@ def main():
if not availableConfigs:
test.fatal("Haven't found a suitable Qt version - leaving without building.")
for kit, config in availableConfigs:
+ if (checkedTargets[kit] == Targets.DESKTOP_480_DEFAULT
+ and config == "Profile" and JIRA.isBugStillOpen(15457)):
+ test.warning("Skipping MSVC build of Qt 4 because of QTCREATORBUG-15457.")
+ continue
selectBuildConfig(len(checkedTargets), kit, config)
test.log("Testing build configuration: " + config)
@@ -95,6 +99,8 @@ def main():
invokeMenuItem("Debug", "Start Debugging", "Start Debugging")
JIRA.performWorkaroundForBug(6853, JIRA.Bug.CREATOR, config)
handleDebuggerWarnings(config, isMsvc)
+ JIRA.performWorkaroundForBug(15456, JIRA.Bug.CREATOR, isMsvc,
+ checkedTargets[kit] & ~Targets.qt4Classes(), config)
ensureChecked(":Qt Creator_AppOutput_Core::Internal::OutputPaneToggleButton")
outputWindow = waitForObject(":Qt Creator_Core::OutputWindow")
waitFor("'Debugging has finished' in str(outputWindow.plainText)", 20000)