summaryrefslogtreecommitdiff
path: root/tests/system/suite_debugger/tst_cli_output_console/test.py
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@nokia.com>2012-02-21 12:42:45 +0100
committerChristian Stenger <christian.stenger@nokia.com>2012-02-21 12:46:50 +0100
commit4667371b9a0a901602b606be120f334f0492d2e1 (patch)
tree255e864cae1d62c2da607be99bfa55fcc84430a8 /tests/system/suite_debugger/tst_cli_output_console/test.py
parent02669ffd7d49dc5787fad68f53acc50a4319aa70 (diff)
downloadqt-creator-4667371b9a0a901602b606be120f334f0492d2e1.tar.gz
Squish: Add timeout for cli test
Change-Id: Id7a8a01d48cd78e98edad9885ecb41360e62e649 Reviewed-by: Bill King <bill.king@nokia.com>
Diffstat (limited to 'tests/system/suite_debugger/tst_cli_output_console/test.py')
-rw-r--r--tests/system/suite_debugger/tst_cli_output_console/test.py8
1 files changed, 6 insertions, 2 deletions
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 6512e5bb9b..3d04ceda26 100644
--- a/tests/system/suite_debugger/tst_cli_output_console/test.py
+++ b/tests/system/suite_debugger/tst_cli_output_console/test.py
@@ -41,7 +41,9 @@ def main():
test.log("Running application")
runControlFinished = False
clickButton(waitForObject("{type='Core::Internal::FancyToolButton' text='Run' visible='1'}", 20000))
- waitFor("runControlFinished==True")
+ waitFor("runControlFinished==True", 20000)
+ if not runControlFinished:
+ test.warning("Waiting for runControlFinished timed out")
appOutput = str(waitForObject("{type='Core::OutputWindow' unnamed='1' visible='1'}", 20000).plainText)
verifyOutput(appOutput, outputStdOut, "std::cout", "Application Output")
verifyOutput(appOutput, outputStdErr, "std::cerr", "Application Output")
@@ -53,7 +55,9 @@ def main():
invokeMenuItem("Debug", "Start Debugging", "Start Debugging")
JIRA.performWorkaroundIfStillOpen(6853, JIRA.Bug.CREATOR, config)
handleDebuggerWarnings(config)
- waitFor("runControlFinished==True")
+ waitFor("runControlFinished==True", 20000)
+ if not runControlFinished:
+ test.warning("Waiting for runControlFinished timed out")
try:
debuggerLog = takeDebuggerLog()
if not "MSVC" in config: