From a3f3572b20960fa2abd0a5ffd5a3e543c270b519 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/testlocaldiscovery.cpp b/test/testlocaldiscovery.cpp index 167695f64ec0b..01407a5ca4ed8 100644 --- a/test/testlocaldiscovery.cpp +++ b/test/testlocaldiscovery.cpp @@ -338,7 +338,11 @@ private slots: QCOMPARE(completeSpy.findItem(fileWithSpaces4)->_status, SyncFileItem::Status::Success); QCOMPARE(completeSpy.findItem(fileWithSpaces5)->_status, SyncFileItem::Status::Success); QCOMPARE(completeSpy.findItem(fileWithSpaces6)->_status, SyncFileItem::Status::Success); +#ifdef Q_OS_WINDOWS + 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()