diff options
author | Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> | 2022-02-07 11:09:44 +0200 |
---|---|---|
committer | Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> | 2022-02-17 20:00:37 +0000 |
commit | 17c7af722c33e7347e99906ae836ad855244a6dc (patch) | |
tree | 615615ca22148a8bee5060ebf0eb8bd2cf572a0c /tests/auto/corelib/global/qlogging/tst_qlogging.cpp | |
parent | 964c964193e42dacb6e64323809e81761270b591 (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.
Pick-to: 6.2 6.3
Change-Id: If62c073101c1d2e3d64f8cb2769d67f3b9fbeefb
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/corelib/global/qlogging/tst_qlogging.cpp')
-rw-r--r-- | tests/auto/corelib/global/qlogging/tst_qlogging.cpp | 1 |
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) } |