aboutsummaryrefslogtreecommitdiff
path: root/autotests/ksharedconfigtest.cpp
diff options
context:
space:
mode:
authorAlex Richardson <arichardson.kde@gmail.com>2014-05-07 02:23:47 +0200
committerAlex Richardson <arichardson.kde@gmail.com>2014-05-07 02:23:47 +0200
commita1dcaf788ee48b70e6937962e6fc00a148d89bc5 (patch)
tree0867dde39e53e24ab719bc9115473f04bff47b57 /autotests/ksharedconfigtest.cpp
parenta3d6957ec5f63b3d668a57b2ada13a3ce9715848 (diff)
downloadkconfig-a1dcaf788ee48b70e6937962e6fc00a148d89bc5.tar.gz
kconfig-a1dcaf788ee48b70e6937962e6fc00a148d89bc5.tar.bz2
Fix unit tests after renaming the test executables
now use QCoreApplication::applicationName() + "rc" as the config file name instead of hardcoding the named
Diffstat (limited to 'autotests/ksharedconfigtest.cpp')
-rw-r--r--autotests/ksharedconfigtest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/autotests/ksharedconfigtest.cpp b/autotests/ksharedconfigtest.cpp
index 165322a3..c22623b4 100644
--- a/autotests/ksharedconfigtest.cpp
+++ b/autotests/ksharedconfigtest.cpp
@@ -38,7 +38,8 @@ void KSharedConfigTest::initTestCase()
{
QStandardPaths::enableTestMode(true);
- m_path = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/ksharedconfigtestrc";
+ m_path = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation)
+ + QLatin1Char('/') + QCoreApplication::applicationName() + QStringLiteral("rc");
QFile::remove(m_path);
}