浏览代码

prevents modifying real user config file

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien 3 年之前
父节点
当前提交
1e12fc951d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      test/testfolderman.cpp

+ 3 - 0
test/testfolderman.cpp

@@ -32,6 +32,9 @@ signals:
 private slots:
     void testLeaveShare()
     {
+        QTemporaryDir dir;
+        ConfigFile::setConfDir(dir.path()); // we don't want to pollute the user's config file
+
         constexpr auto firstSharePath = "A/sharedwithme_A.txt";
         constexpr auto secondSharePath = "A/B/sharedwithme_B.data";