summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2021-06-30 10:22:55 +0300
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2021-07-01 13:29:43 +0000
commit41b7580164cc6d5454c0ec1271b146fddc6c1726 (patch)
tree810978b1f4a5d57cf0606f84a6a0c278f16b93a4 /tests/auto/corelib/global/qlogging/tst_qlogging.cpp
parente01a004a38ed5e323ee238be02d2d2e2275eee09 (diff)
Fix tst_qmessagehandler::formatLogMessage() test on Android
This amends 87d8ee755bfdef8e72a122789c2e3ed382881a12. Pick-to: 6.2 Task-number: QTBUG-94708 Change-Id: Iac9b0f896ede76074504f777b65ad572dd8d6377 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Diffstat (limited to 'tests/auto/corelib/global/qlogging/tst_qlogging.cpp')
-rw-r--r--tests/auto/corelib/global/qlogging/tst_qlogging.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/global/qlogging/tst_qlogging.cpp b/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
index b089381272..af4a5989d8 100644
--- a/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
+++ b/tests/auto/corelib/global/qlogging/tst_qlogging.cpp
@@ -902,7 +902,11 @@ void tst_qmessagehandler::formatLogMessage_data()
<< format << "[F] msg"
<< QtFatalMsg << BA("") << 0 << BA("func") << QByteArray() << "msg";
QTest::newRow("if_cat")
+#ifndef Q_OS_ANDROID
<< format << "[F] cat: msg"
+#else
+ << format << "[F] : msg"
+#endif
<< QtFatalMsg << BA("") << 0 << BA("func") << BA("cat") << "msg";
}