Forráskód Böngészése

prevents modifying real user config file

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien 3 éve
szülő
commit
1e12fc951d
1 módosított fájl, 3 hozzáadás és 0 törlés
  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";