From de1a3283909a19622b95b7c0f89bcdcb39accd7c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 18 Mar 2022 13:08:28 +0100 Subject: Squish: Fix debugging console app test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I752dab65948952081752a805018cfc3b01193855 Reviewed-by: Robert Löhning --- tests/system/shared/debugger.py | 3 ++- tests/system/suite_debugger/tst_cli_output_console/test.py | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/system/shared/debugger.py b/tests/system/shared/debugger.py index 39b184146e..586867fd5c 100644 --- a/tests/system/shared/debugger.py +++ b/tests/system/shared/debugger.py @@ -42,7 +42,8 @@ def handleDebuggerWarnings(config, isMsvcBuild=False): clickButton(waitForObject("{text='Cancel' type='QPushButton' unnamed='1' visible='1' window=':Dialog_Debugger::Internal::SymbolPathsDialog'}", 10000)) except LookupError: pass # No warning. Fine. - if "Release" in config and (isMsvcBuild or platform.system() == "Linux"): + isReleaseConfig = "Release" in config and not "with Debug Information" in config + if isReleaseConfig and (isMsvcBuild or platform.system() == "Linux"): msgBox = "{type='QMessageBox' unnamed='1' visible='1' windowTitle='Warning'}" message = waitForObject("{name='qt_msgbox_label' type='QLabel' visible='1' window=%s}" % msgBox) messageText = str(message.text) 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 3f996241af..be89db5a85 100644 --- a/tests/system/suite_debugger/tst_cli_output_console/test.py +++ b/tests/system/suite_debugger/tst_cli_output_console/test.py @@ -50,9 +50,10 @@ def main(): 'Waiter();']) # Rely on code completion for closing bracket invokeMenuItem("File", "Save All") - openDocument(project + "." + project + "\\.pro") - proEditor = waitForObject(":Qt Creator_TextEditor::TextEditorWidget") - test.verify("CONFIG += c++11 console" in str(proEditor.plainText), + openDocument(project + ".CMakeLists\\.txt") + projectFileEditor = waitForObject(":Qt Creator_TextEditor::TextEditorWidget") + projectFileContent = str(projectFileEditor.plainText) + test.verify("Widgets" not in projectFileContent and "MACOSX_BUNDLE" not in projectFileContent, "Verifying that program is configured with console") availableConfigs = iterateBuildConfigs() @@ -88,7 +89,7 @@ def main(): test.log("Debugging application") isMsvc = isMsvcConfig(kit) - invokeMenuItem("Debug", "Start Debugging", "Start debugging of startup project") + invokeMenuItem("Debug", "Start Debugging", "Start Debugging of Startup Project") handleDebuggerWarnings(config, isMsvc) ensureChecked(":Qt Creator_AppOutput_Core::Internal::OutputPaneToggleButton") outputWindow = waitForObject(":Qt Creator_Core::OutputWindow") -- cgit v1.2.3