From 1463f8a78f0f923eabde554854b5d6fbfdb4606d Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 5 Nov 2018 13:27:08 +0100 Subject: Test that the sync behave well if there are errors while reading the database --- test/syncenginetestutils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/syncenginetestutils.h') diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h index fbd0a2158..ab2b2777d 100644 --- a/test/syncenginetestutils.h +++ b/test/syncenginetestutils.h @@ -12,6 +12,7 @@ #include "filesystem.h" #include "syncengine.h" #include "common/syncjournaldb.h" +#include "csync_exclude.h" #include #include @@ -1134,6 +1135,8 @@ public: _journalDb.reset(new OCC::SyncJournalDb(localPath() + "._sync_test.db")); _syncEngine.reset(new OCC::SyncEngine(_account, localPath(), "", _journalDb.get())); + // Ignore temporary files from the download. (This is in the default exclude list, but we don't load it) + _syncEngine->excludedFiles().addManualExclude("]*.~*"); // A new folder will update the local file state database on first sync. // To have a state matching what users will encounter, we have to a sync -- cgit v1.2.3