summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2022-02-07 11:09:44 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-18 08:03:54 +0000
commit6fea9e7ae4d0b77c8c3d293190e4283aeda2aa43 (patch)
treee51cbedb392b9052b33e4793bcf93d8de71fe76a /tests
parent9d95ccc0116ead6f779af7215562de41663d5f62 (diff)
tst_qmessagehandler: force QProcess tests to log to stderr
These tests rely on reading output sent to stderr, so make sure their output does go there. Change-Id: If62c073101c1d2e3d64f8cb2769d67f3b9fbeefb Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 17c7af722c33e7347e99906ae836ad855244a6dc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/global/qlogging/tst_qlogging.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/corelib/global/qlogging/tst_qlogging.cpp b/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
index a6a2c1d139..aa139eb896 100644
--- a/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
+++ b/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
@@ -97,6 +97,7 @@ void tst_qmessagehandler::initTestCase()
break;
}
}
+ m_baseEnvironment.prepend("QT_FORCE_STDERR_LOGGING=1");
#endif // QT_CONFIG(process)
}