diff options
author | Robert Griebl <robert.griebl@qt.io> | 2023-07-20 22:07:36 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2023-07-25 10:34:21 +0000 |
commit | 79ce927c2a4ca35056cb9aaebaf122d43de12a52 (patch) | |
tree | c513320ac38adf10d877cd95ea1a3d1c15db9870 | |
parent | 9965d9a14f8646547ed5ca45c0b1d4633ba82cf2 (diff) |
Make sure the qmltestrunner is logging to stderr on Windows
Change-Id: I577606e42c9ee2d1dfe8f5b8c53f9a55275e552d
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
(cherry picked from commit f48ef31446dc13c76838b744587108cc558e8464)
-rw-r--r-- | src/tools/testrunner/testrunner.cpp | 4 |
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); |