From 648403d439b00525f5da84f9258210faa05e846c Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@digia.com>
Date: Thu, 20 Jun 2013 13:26:01 +0200
Subject: [PATCH] Squish: Fix handleDebuggerWarnings()

Warning now shows up for MSVC builds, too.

Change-Id: I774079fd6ee0f9bf70a7f37c9920dd45e55154d0
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
---
 tests/system/shared/debugger.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/tests/system/shared/debugger.py b/tests/system/shared/debugger.py
index 849fab459dd..649f668c4d0 100644
--- a/tests/system/shared/debugger.py
+++ b/tests/system/shared/debugger.py
@@ -48,13 +48,12 @@ 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.
-    else:
-        if "Release" in config and not platform.system() in ("Darwin", "Microsoft", "Windows"):
-            message = waitForObject("{container=':Qt Creator.DebugModeWidget_QSplitter' name='qt_msgbox_label' type='QLabel' visible='1'}")
-            messageText = str(message.text)
-            test.verify(messageText.startswith('This does not seem to be a "Debug" build.\nSetting breakpoints by file name and line number may fail.'),
-                        "Got warning: %s" % messageText)
-            clickButton("{container=':Qt Creator.DebugModeWidget_QSplitter' text='OK' type='QPushButton' unnamed='1' visible='1'}")
+    if "Release" in config and (isMsvcBuild or platform.system() == "Linux"):
+        message = waitForObject("{container=':Qt Creator.DebugModeWidget_QSplitter' name='qt_msgbox_label' type='QLabel' visible='1'}")
+        messageText = str(message.text)
+        test.verify(messageText.startswith('This does not seem to be a "Debug" build.\nSetting breakpoints by file name and line number may fail.'),
+                    "Got warning: %s" % messageText)
+        clickButton("{container=':Qt Creator.DebugModeWidget_QSplitter' text='OK' type='QPushButton' unnamed='1' visible='1'}")
 
 def takeDebuggerLog():
     invokeMenuItem("Window", "Views", "Debugger Log")
-- 
GitLab