summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-12-07 11:12:48 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-12-07 11:27:50 (GMT)
commit7dce8f9b28288b95daf0e8fd1016b8b75bccc61c (patch)
tree5e76038dc7ec3f9b882fb9d73db7c1a1cec84337 /src/testlib
parent0ce754850de6473bc0df1918d76a9b127b445260 (diff)
downloadQt-7dce8f9b28288b95daf0e8fd1016b8b75bccc61c.zip
Qt-7dce8f9b28288b95daf0e8fd1016b8b75bccc61c.tar.gz
Qt-7dce8f9b28288b95daf0e8fd1016b8b75bccc61c.tar.bz2
QTestLib: Wait a bit on Symbian at exit
Reviewed-by: Shane Kearns
Diffstat (limited to 'src/testlib')
-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 f7269d6..a23638e 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;
}