From 41b7580164cc6d5454c0ec1271b146fddc6c1726 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Wed, 30 Jun 2021 10:22:55 +0300 Subject: 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 --- tests/auto/corelib/global/qlogging/tst_qlogging.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/corelib/global/qlogging/tst_qlogging.cpp') 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"; } -- cgit v1.2.3