From 9ed87bf2ad5cff89f6d2c2fb47ea4f53d17ef55a Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 29 Apr 2024 11:48:30 +0200 Subject: [PATCH] some files just cannot sync on windows: get automated tests to work fix one automated test knowing the platform limitations of windows Signed-off-by: Matthieu Gallien --- test/testlocaldiscovery.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/testlocaldiscovery.cpp b/test/testlocaldiscovery.cpp index 9632816cce..a3dc0d64d1 100644 --- a/test/testlocaldiscovery.cpp +++ b/test/testlocaldiscovery.cpp @@ -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()