summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestlogger.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-08-25 16:21:36 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-26 08:02:32 +0200
commit3c48d26c5b297f851615f942b30a3346d8b0df5c (patch)
treef2322d235453f8b8f71a6203dd88d53182662e7e /src/testlib/qtestlogger.cpp
parentc478ebc91445b3f7b42a594208aca4d8e9c71a70 (diff)
Remove duplicated code from QTestBasicStreamer.
Instead of using the file output functions inherited from QAbstractTestLogger, QTestLogger relied on QTestBasicStreamer having a copy of these functions. This commit removes the copied functions from QTestBasicStreamer and makes it and QTestLogger use the original functions from QAbstractTestLogger. Change-Id: Icac1ae9d85cd39efd4c67c79104404dd56766b17 Reviewed-on: http://codereview.qt.nokia.com/3565 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qtestlogger.cpp')
-rw-r--r--src/testlib/qtestlogger.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testlib/qtestlogger.cpp b/src/testlib/qtestlogger.cpp
index 2c81a4bec7..316e89fb55 100644
--- a/src/testlib/qtestlogger.cpp
+++ b/src/testlib/qtestlogger.cpp
@@ -80,6 +80,8 @@ QTestLogger::~QTestLogger()
void QTestLogger::startLogging()
{
+ QAbstractTestLogger::startLogging();
+
switch(format){
case TLF_LightXml:{
logFormatter = new QTestLightXmlStreamer;
@@ -99,7 +101,6 @@ void QTestLogger::startLogging()
}
logFormatter->setLogger(this);
- logFormatter->startStreaming();
}
void QTestLogger::stopLogging()
@@ -161,7 +162,7 @@ void QTestLogger::stopLogging()
logFormatter->output(iterator);
}
- logFormatter->stopStreaming();
+ QAbstractTestLogger::stopLogging();
}
void QTestLogger::enterTestFunction(const char *function)