From a1dcaf788ee48b70e6937962e6fc00a148d89bc5 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Wed, 7 May 2014 02:23:47 +0200 Subject: Fix unit tests after renaming the test executables now use QCoreApplication::applicationName() + "rc" as the config file name instead of hardcoding the named --- autotests/ksharedconfigtest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'autotests/ksharedconfigtest.cpp') 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); } -- cgit v1.2.1