summaryrefslogtreecommitdiffstats
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-17 21:23:09 +0000
commit8bab6c730a5d3a2e63ea455e992b6531c48a54bb (patch)
tree624fb677679e640103994778c4362b780f7bffc3
parent462bd9933c742e7aa5faf9e9ad48b634d3f71e10 (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>
-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 af4a5989d8..a5334a4d51 100644
--- a/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
+++ b/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
@@ -96,6 +96,7 @@ void tst_qmessagehandler::initTestCase()
break;
}
}
+ m_baseEnvironment.prepend("QT_FORCE_STDERR_LOGGING=1");
#endif // QT_CONFIG(process)
}