Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-12-13 20:19:29 +0300
committerHannah von Reth <vonreth@kde.org>2021-12-14 00:13:55 +0300
commit94f7e498f1d236cb4a4bb3630f528b80394da19e (patch)
tree3fc1fd609b33fd44c278799d1f8a302c2ee7fe71 /test
parentb206a3d994f84451c98429621f3d6e56f98a5827 (diff)
Run test on Windows
Diffstat (limited to 'test')
-rw-r--r--test/testsyncengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testsyncengine.cpp b/test/testsyncengine.cpp
index 702e47d57..60635fc2e 100644
--- a/test/testsyncengine.cpp
+++ b/test/testsyncengine.cpp
@@ -623,10 +623,12 @@ private slots:
void testNoLocalEncoding()
{
+#ifndef Q_OS_WIN
const auto utf8Locale = QTextCodec::codecForLocale();
if (utf8Locale->mibEnum() != 106) {
QSKIP(qUtf8Printable(QStringLiteral("Test only works for UTF8 locale, but current locale is %1").arg(QString::fromUtf8(utf8Locale->name()))));
}
+#endif
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
QVERIFY(fakeFolder.syncOnce());
@@ -635,9 +637,11 @@ private slots:
// Utf8 locale can sync both
fakeFolder.remoteModifier().insert("A/tößt");
fakeFolder.remoteModifier().insert("A/t𠜎t");
+ fakeFolder.remoteModifier().insert("A/💩");
QVERIFY(fakeFolder.syncOnce());
QVERIFY(fakeFolder.currentLocalState().find("A/tößt"));
QVERIFY(fakeFolder.currentLocalState().find("A/t𠜎t"));
+ QVERIFY(fakeFolder.currentLocalState().find("A/💩"));
#if !defined(Q_OS_MAC) && !defined(Q_OS_WIN)
// Try again with a locale that can represent ö but not 𠜎 (4-byte utf8).