some files just cannot sync on windows: get automated tests to work
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 29 Apr 2024 09:48:30 +0000 (11:48 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 15 May 2024 15:48:58 +0000 (17:48 +0200)
fix one automated test knowing the platform limitations of windows

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
test/testlocaldiscovery.cpp

index 9632816ccebf2cc9dec7ef5ac23068b852c04a4b..a3dc0d64d194a047bbd589f257c862931d4b750d 100644 (file)
@@ -347,9 +347,10 @@ private slots:
         QCOMPARE(completeSpy.findItem(fileWithSpaces5)->_status, SyncFileItem::Status::Success);
         QCOMPARE(completeSpy.findItem(fileWithSpaces6)->_status, SyncFileItem::Status::Success);
 #ifdef Q_OS_WINDOWS
-        QEXPECT_FAIL("", "", Continue);
-#endif
+        QCOMPARE(completeSpy.findItem(QStringLiteral(" with spaces "))->_status, SyncFileItem::Status::NormalError);
+#else
         QCOMPARE(completeSpy.findItem(QStringLiteral(" with spaces "))->_status, SyncFileItem::Status::Success);
+#endif
     }
 
     void testCreateFileWithTrailingSpaces_remoteDontGetRenamedAutomatically()