From e0a36ab3137501fab3ff4463ce74219590c48383 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 11 Oct 2016 11:55:20 +0200 Subject: TestFolderMan: don't pollute user's settings --- test/testfolderman.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/testfolderman.cpp') diff --git a/test/testfolderman.cpp b/test/testfolderman.cpp index 7b1c3cc5b..d753d5977 100644 --- a/test/testfolderman.cpp +++ b/test/testfolderman.cpp @@ -15,6 +15,7 @@ #include "folderman.h" #include "account.h" #include "accountstate.h" +#include "configfile.h" using namespace OCC; @@ -39,6 +40,7 @@ private slots: { #if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) QTemporaryDir dir; + ConfigFile::setConfDir(dir.path()); // we don't want to pollute the user's config file QVERIFY(dir.isValid()); QDir dir2(dir.path()); QVERIFY(dir2.mkpath("sub/ownCloud1/folder/f")); -- cgit v1.2.3