aboutsummaryrefslogtreecommitdiff
path: root/autotests/test_kconf_update.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2015-05-02 00:16:55 +0200
committerDavid Faure <faure@kde.org>2015-05-02 00:16:55 +0200
commit76e5b4412782b9c1757c8cdb3984f99566a57b96 (patch)
treeba93b16698e3da2a494d04e7130a35d64f7871a3 /autotests/test_kconf_update.cpp
parent87a661450b152206ab6768d1fc8e63db15dee400 (diff)
downloadkconfig-76e5b4412782b9c1757c8cdb3984f99566a57b96.tar.gz
kconfig-76e5b4412782b9c1757c8cdb3984f99566a57b96.tar.bz2
Fix kconf_update for spaces in paths
(CI says it happens on OSX) Unittest it on Linux by exporting XDG_DATA_HOME with a space in it. CCMAIL: kde-mac@kde.org
Diffstat (limited to 'autotests/test_kconf_update.cpp')
-rw-r--r--autotests/test_kconf_update.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/autotests/test_kconf_update.cpp b/autotests/test_kconf_update.cpp
index 86553a21..baa4dc56 100644
--- a/autotests/test_kconf_update.cpp
+++ b/autotests/test_kconf_update.cpp
@@ -33,6 +33,12 @@
QTEST_GUILESS_MAIN(TestKConfUpdate)
+void TestKConfUpdate::initTestCase()
+{
+ // Ensure it all works with spaces in paths (as happens more commonly on OSX where it's ~/Library/Application Support/)
+ qputenv("XDG_DATA_HOME", "/tmp/a b");
+}
+
static void writeFile(const QString &path, const QString &content)
{
QFile file(path);