summaryrefslogtreecommitdiffstats
path: root/src/testlib/qabstracttestlogger.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-08-24 11:39:34 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-29 03:42:54 +0200
commitdc7b2b8d9ca1d394d8338ce1c1f51eafac187908 (patch)
treed7f350c7f51ce323b078928f0e58c4fd8a63a3c7 /src/testlib/qabstracttestlogger.cpp
parent865c27460e9779e7e4cafea84db843c3c5b26765 (diff)
Remove color logging feature from qtestlib.
This feature was undocumented and only worked if a secret environment variable was set, the test output was going to a real console, and plain text test results were being generated. Including code in testlib for fancy presentation of test results conflicts with testlib's stated goal of being a lightweight framework where every feature contributes to finding bugs, so this feature is being removed. If fancy presentation of test output is required, it should be achieved by post-processing the test output outside of the test framework. Change-Id: I872165c4d2c3d2498c3aa039070ecf319e237ca1 Reviewed-on: http://codereview.qt.nokia.com/3432 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qabstracttestlogger.cpp')
-rw-r--r--src/testlib/qabstracttestlogger.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/testlib/qabstracttestlogger.cpp b/src/testlib/qabstracttestlogger.cpp
index 1e95471e70..25193c9aed 100644
--- a/src/testlib/qabstracttestlogger.cpp
+++ b/src/testlib/qabstracttestlogger.cpp
@@ -67,19 +67,6 @@ void QAbstractTestLogger::outputString(const char *msg)
::fflush(QTest::stream);
}
-bool QAbstractTestLogger::isTtyOutput()
-{
- QTEST_ASSERT(QTest::stream);
-
-#if defined(Q_OS_WIN) || defined(Q_OS_INTEGRITY)
- return true;
-#else
- static bool ttyoutput = isatty(fileno(QTest::stream));
- return ttyoutput;
-#endif
-}
-
-
void QAbstractTestLogger::startLogging(const char *filename)
{
QTEST_ASSERT(!QTest::stream);