summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2021-10-25 14:29:15 +0300
committerIvan Komissarov <ABBAPOH@gmail.com>2021-10-26 12:38:04 +0000
commitb035d081fed2cb5c1a90cd609011955a1d587472 (patch)
tree62997ce97b9f17f4184d66236a058c6bce451104 /tests
parent22b93598471a22e09052405ad33e24bd15f1e6be (diff)
downloadqbs-b035d081fed2cb5c1a90cd609011955a1d587472.tar.gz
Do not migrate profiles dir in Settings anymore
It was only used by Qt and is not needed because of providers these days. Task-number: QTCREATORBUG-26475 Change-Id: I8bf79bcaa7468c8df3669902ac453d46bbfa46f8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/tools/tst_tools.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/tools/tst_tools.cpp b/tests/auto/tools/tst_tools.cpp
index 894cfdcf6..a872bdd0d 100644
--- a/tests/auto/tools/tst_tools.cpp
+++ b/tests/auto/tools/tst_tools.cpp
@@ -308,10 +308,10 @@ void TestTools::testSettingsMigration()
QFETCH(bool, hasOldSettings);
Settings settings(baseDir);
if (hasOldSettings) {
- QVERIFY(QFileInfo(settings.baseDirectory() + "/qbs/" QBS_VERSION "/profiles/right.txt")
+ // checks that we do not copy old "profiles/" dir anymore
+ QVERIFY(!QFileInfo(settings.baseDirectory() + "/qbs/" QBS_VERSION "/profiles/right.txt")
.exists());
- QCOMPARE(settings.value("key", Settings::UserScope).toString(),
- settings.baseDirectory() + "/qbs/" QBS_VERSION "/profilesright");
+ QVERIFY(!settings.value("key", Settings::UserScope).toString().isEmpty());
} else {
QVERIFY(!QFileInfo(settings.baseDirectory() + "/qbs/" QBS_VERSION "/profiles").exists());
QVERIFY(settings.allKeys(Settings::UserScope).empty());