diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py
index aba43b65bf5ba9df0deb3cacc521d84df69f9405..cb68aa299c1e4df57f345d051b9e9cb2cf830ce7 100644
--- a/tests/system/shared/project.py
+++ b/tests/system/shared/project.py
@@ -335,6 +335,7 @@ def validType(sType, userDef):
 
 def __closeSubprocessByPushingStop__(sType):
     ensureChecked(":Qt Creator_AppOutput_Core::Internal::OutputPaneToggleButton")
+    waitForObject(":Qt Creator.Stop_QToolButton", 5000)
     playButton = verifyEnabled(":Qt Creator.ReRun_QToolButton", False)
     stopButton = verifyEnabled(":Qt Creator.Stop_QToolButton")
     if stopButton.enabled: