aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 2de7cea85..dba77ff60 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -36,6 +36,7 @@
#include <tools/preferences.h>
#include <tools/profile.h>
#include <tools/qttools.h>
+#include <tools/settings.h>
#include <tools/shellutils.h>
#include <tools/stlutils.h>
#include <tools/version.h>
@@ -5230,8 +5231,9 @@ void TestBlackbox::qbsConfig()
bool canWriteToSystemSettings;
QString testSettingsFilePath;
{
- QSettings testSettings(QSettings::IniFormat, QSettings::SystemScope,
- "dummyOrg", "dummyApp");
+ QSettings testSettings(
+ qbs::Settings::defaultSystemSettingsBaseDir() + "/dummyOrg" + "/dummyApp.conf",
+ QSettings::IniFormat);
testSettings.setValue("dummyKey", "dummyValue");
testSettings.sync();
canWriteToSystemSettings = testSettings.status() == QSettings::NoError;