From 76cfe9e30edb283b6eac4fd637974e032d3c8549 Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@digia.com>
Date: Wed, 18 Sep 2013 17:36:10 +0200
Subject: [PATCH] Squish: Update expected window title in tst_basic_cpp_support

Change-Id: Ic5d23a899d1b808780f76ef53c855397cc436c2f
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
---
 tests/system/suite_editors/tst_basic_cpp_support/test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/system/suite_editors/tst_basic_cpp_support/test.py b/tests/system/suite_editors/tst_basic_cpp_support/test.py
index ca06c0b4582..6b31a6973be 100644
--- a/tests/system/suite_editors/tst_basic_cpp_support/test.py
+++ b/tests/system/suite_editors/tst_basic_cpp_support/test.py
@@ -93,7 +93,8 @@ def main():
 #    Creator should show the declaration of the function again.
     selectFromLocator("dummy.cpp")
     mainWin = findObject(":Qt Creator_Core::Internal::MainWindow")
-    waitFor("'dummy.cpp - cplusplus-tools - ' in str(mainWin.windowTitle)")
+    if not waitFor("'dummy.cpp ' in str(mainWin.windowTitle) and ' - cplusplus-tools - ' in str(mainWin.windowTitle)", 5000):
+        test.warning("Opening dummy.cpp seems to have failed")
     # Reset cursor to the start of the document
     cursor = findObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget").textCursor()
     cursor.movePosition(QTextCursor.Start)
-- 
GitLab