From 1e12fc951de8513d8c490b2fc15d046c2eb3dd70 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Wed, 23 Nov 2022 16:56:35 +0100 Subject: [PATCH] prevents modifying real user config file Signed-off-by: Matthieu Gallien --- test/testfolderman.cpp | 3 +++ 1 file changed, 3 insertions(+) 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"; -- 2.30.2