From e38c84d5db48a494f4508e3c188a01bce0648d4c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 15 Nov 2023 14:00:11 +0100 Subject: [PATCH] Tests: Fix warning and test execution on Windows Avoids warning C4566: character represented by universal-character-name '\u23F0' cannot be represented in the current code page (1252) and the resulting test fail on Windows. Change-Id: I2bdd43b0648a954faa9e444df79a91027e6e891f Reviewed-by: Alessandro Portale --- tests/auto/utils/stringutils/tst_stringutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/utils/stringutils/tst_stringutils.cpp b/tests/auto/utils/stringutils/tst_stringutils.cpp index 9219ef7c8b0..0b5c5cd1527 100644 --- a/tests/auto/utils/stringutils/tst_stringutils.cpp +++ b/tests/auto/utils/stringutils/tst_stringutils.cpp @@ -448,7 +448,7 @@ void tst_StringUtils::testAsciify_data() QTest::newRow("Basic Latin") << QString("Basic text") << QString("Basic text"); QTest::newRow("Control character") << QString("\x07 text") << QString("u0007 text"); - QTest::newRow("Miscellaneous Technical") << QString("\u23F0 text") << QString("u23f0 text"); + QTest::newRow("Miscellaneous Technical") << QString(u8"\u23F0 text") << QString("u23f0 text"); } void tst_StringUtils::testAsciify()