summaryrefslogtreecommitdiffstats
path: root/src/tools/testrunner/testrunner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/testrunner/testrunner.cpp')
-rw-r--r--src/tools/testrunner/testrunner.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/testrunner/testrunner.cpp b/src/tools/testrunner/testrunner.cpp
index fedab32e..5c9c8489 100644
--- a/src/tools/testrunner/testrunner.cpp
+++ b/src/tools/testrunner/testrunner.cpp
@@ -39,6 +39,10 @@ void TestRunner::initialize(const QString &testFile, const QStringList &testRunn
{
Q_ASSERT(!testRunnerArguments.isEmpty());
+#if defined(Q_OS_WINDOWS)
+ qputenv("QT_FORCE_STDERR_LOGGING", "1");
+#endif
+
const QString name = QFileInfo(testRunnerArguments.at(0)).fileName() + qSL("::") + QDir().relativeFilePath(testFile);
static const char *programName = qstrdup(name.toLocal8Bit().constData());
QuickTestResult::setProgramName(programName);