From 17c7af722c33e7347e99906ae836ad855244a6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pasi=20Pet=C3=A4j=C3=A4j=C3=A4rvi?= Date: Mon, 7 Feb 2022 11:09:44 +0200 Subject: [PATCH] tst_qmessagehandler: force QProcess tests to log to stderr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These tests rely on reading output sent to stderr, so make sure their output does go there. Pick-to: 6.2 6.3 Change-Id: If62c073101c1d2e3d64f8cb2769d67f3b9fbeefb Reviewed-by: Tor Arne Vestbø --- tests/auto/corelib/global/qlogging/tst_qlogging.cpp | 1 + 1 file changed, 1 insertion(+) 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) }