From: Christian Kamm Date: Tue, 16 Jul 2019 12:23:15 +0000 (+0200) Subject: FolderWatcher: Disable test on OSX #7305 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~47^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=08014b6dc3d150d017d61c83c5ebeca1656d946b;p=nextcloud-desktop.git FolderWatcher: Disable test on OSX #7305 --- 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;