aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/system/suite_debugger/tst_cli_output_console/test.py5
1 files changed, 4 insertions, 1 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 9774ea59b2..3f996241af 100644
--- a/tests/system/suite_debugger/tst_cli_output_console/test.py
+++ b/tests/system/suite_debugger/tst_cli_output_console/test.py
@@ -39,12 +39,15 @@ def main():
mainEditor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
replaceEditorContent(mainEditor, "")
typeLines(mainEditor, ["#include <QDebug>",
+ "#include <QThread>",
"#include <iostream>",
+ "struct Waiter:public QThread{Waiter(){QThread::sleep(2);}};",
"int main(int, char *argv[])",
"{",
'std::cout << \"' + outputStdOut + '\" << std::endl;',
'std::cerr << \"' + outputStdErr + '\" << std::endl;',
- 'qDebug() << \"' + outputQDebug + '\";'])
+ 'qDebug() << \"' + outputQDebug + '\";',
+ 'Waiter();'])
# Rely on code completion for closing bracket
invokeMenuItem("File", "Save All")
openDocument(project + "." + project + "\\.pro")