From: Matthieu Gallien Date: Wed, 23 Nov 2022 15:56:35 +0000 (+0100) Subject: prevents modifying real user config file X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~120^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1e12fc951de8513d8c490b2fc15d046c2eb3dd70;p=nextcloud-desktop.git prevents modifying real user config file Signed-off-by: Matthieu Gallien --- diff --git a/test/testfolderman.cpp b/test/testfolderman.cpp index 9689a8592..049deefa1 100644 --- a/test/testfolderman.cpp +++ b/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";