From ffbdbc855ce103c2f444f81fdfa00007fbd39844 Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@digia.com>
Date: Wed, 8 Jan 2014 10:48:00 +0100
Subject: [PATCH] Squish: Give subprocess some seconds to quit

Change-Id: I83ca568b88537fca189425de1795b82eaca66105
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
---
 tests/system/shared/project.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py
index 634269cc6d1..b814680f8dd 100644
--- a/tests/system/shared/project.py
+++ b/tests/system/shared/project.py
@@ -456,8 +456,8 @@ def __closeSubprocessByPushingStop__(sType):
     stopButton = verifyEnabled(":Qt Creator.Stop_QToolButton")
     if stopButton.enabled:
         clickButton(stopButton)
-        test.verify(playButton.enabled)
-        test.compare(stopButton.enabled, False)
+        test.verify(waitFor("playButton.enabled", 5000), "Play button should be enabled")
+        test.compare(stopButton.enabled, False, "Stop button should be disabled")
         if sType == SubprocessType.QT_QUICK_UI and platform.system() == "Darwin":
             waitFor("stopButton.enabled==False")
             snooze(2)
-- 
GitLab