From 08014b6dc3d150d017d61c83c5ebeca1656d946b Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 16 Jul 2019 14:23:15 +0200 Subject: [PATCH] FolderWatcher: Disable test on OSX #7305 --- src/gui/folderwatcher.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/folderwatcher.cpp b/src/gui/folderwatcher.cpp index 80685e3cf..04d10776b 100644 --- a/src/gui/folderwatcher.cpp +++ b/src/gui/folderwatcher.cpp @@ -89,6 +89,14 @@ void FolderWatcher::appendSubPaths(QDir dir, QStringList& subPaths) { void FolderWatcher::startNotificatonTest(const QString &path) { +#ifdef Q_OS_MAC + // Testing the folder watcher on OSX is harder because the watcher + // automatically discards changes that were performed by our process. + // It would still be useful to test but the OSX implementation + // is deferred until later. + return; +#endif + Q_ASSERT(_testNotificationPath.isEmpty()); _testNotificationPath = path; -- 2.30.2