From 2daeaadeadfaaa5add3b6852d9d6f481fb0b20d8 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 18 Mar 2025 09:35:13 +0100 Subject: [PATCH] skip single test or whole test file for macOS: they are broken would need careful analyze to fix those until we can get them fixed, better make the other tests be required in the CI Signed-off-by: Matthieu Gallien --- test/CMakeLists.txt | 2 +- test/testfolderwatcher.cpp | 4 ++++ test/testsyncmove.cpp | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ada0d64c58..2c66540f1c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -47,9 +47,9 @@ nextcloud_add_test(Utility) if (NOT APPLE) nextcloud_add_test(SyncEngine) + nextcloud_add_test(SyncVirtualFiles) endif() -nextcloud_add_test(SyncVirtualFiles) nextcloud_add_test(SyncMove) nextcloud_add_test(SyncDelete) nextcloud_add_test(SyncConflict) diff --git a/test/testfolderwatcher.cpp b/test/testfolderwatcher.cpp index 598c361a76..ef368a7923 100644 --- a/test/testfolderwatcher.cpp +++ b/test/testfolderwatcher.cpp @@ -331,6 +331,10 @@ private slots: } void testDetectLockFilesExternally() { +#if defined Q_OS_MACOS + QSKIP("not reliable on macOS"); +#endif + QStringList listOfOfficeFiles = {QString(_rootPath + "/document.docx"), QString(_rootPath + "/document.odt")}; std::sort(std::begin(listOfOfficeFiles), std::end(listOfOfficeFiles)); diff --git a/test/testsyncmove.cpp b/test/testsyncmove.cpp index 8b5ef5806a..4f775c7fc9 100644 --- a/test/testsyncmove.cpp +++ b/test/testsyncmove.cpp @@ -976,6 +976,10 @@ private slots: void testMovedWithError() { +#if defined Q_OS_MACOS + QSKIP("not reliable on macOS"); +#endif + QFETCH(Vfs::Mode, vfsMode); const auto getName = [vfsMode] (const QString &s) {