summaryrefslogtreecommitdiffstats
path: root/src/testlib/qabstracttestlogger.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2011-04-28 09:11:42 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2011-04-28 09:11:42 (GMT)
commite3aa9ad1a15505fb2ac8e51e4da4e219efc62e66 (patch)
tree184d13abc3c189b5d3f29b891909b426cac85132 /src/testlib/qabstracttestlogger.cpp
parentd8b933084ecc6ded6689f71ea6ca2e5fd339faf3 (diff)
parent8e615d9b07f6146b5cb6b56c4cd2e32376a8b429 (diff)
downloadQt-e3aa9ad1a15505fb2ac8e51e4da4e219efc62e66.zip
Qt-e3aa9ad1a15505fb2ac8e51e4da4e219efc62e66.tar.gz
Qt-e3aa9ad1a15505fb2ac8e51e4da4e219efc62e66.tar.bz2
Merge branch '4.8-upstream'
Diffstat (limited to 'src/testlib/qabstracttestlogger.cpp')
-rw-r--r--src/testlib/qabstracttestlogger.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testlib/qabstracttestlogger.cpp b/src/testlib/qabstracttestlogger.cpp
index e42e0c4..c2e53e6 100644
--- a/src/testlib/qabstracttestlogger.cpp
+++ b/src/testlib/qabstracttestlogger.cpp
@@ -104,8 +104,16 @@ void QAbstractTestLogger::startLogging()
void QAbstractTestLogger::stopLogging()
{
QTEST_ASSERT(QTest::stream);
- if (QTest::stream != stdout)
+ if (QTest::stream != stdout) {
fclose(QTest::stream);
+ } else {
+#ifdef Q_OS_SYMBIAN
+ // Convenience sleep for Symbian and TRK. Without this sleep depending on the timing the
+ // user would not see the complete output because it is still pending in any of the buffers
+ // before arriving via the USB port on the development PC
+ User::AfterHighRes(2*1000*1000);
+#endif
+ }
QTest::stream = 0;
}