path: root/src/testlib/qabstracttestlogger.cpp
diff options
authorJason McDonald <>2011-08-24 11:39:34 +1000
committerQt by Nokia <>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: Reviewed-by: Qt Sanity Bot <> Reviewed-by: Rohan McGovern <>
Diffstat (limited to 'src/testlib/qabstracttestlogger.cpp')
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)
-bool QAbstractTestLogger::isTtyOutput()
- QTEST_ASSERT(QTest::stream);
-#if defined(Q_OS_WIN) || defined(Q_OS_INTEGRITY)
- return true;
- static bool ttyoutput = isatty(fileno(QTest::stream));
- return ttyoutput;
void QAbstractTestLogger::startLogging(const char *filename)