diff options
author | Alex Richardson <arichardson.kde@gmail.com> | 2014-05-07 02:23:47 +0200 |
---|---|---|
committer | Alex Richardson <arichardson.kde@gmail.com> | 2014-05-07 02:23:47 +0200 |
commit | a1dcaf788ee48b70e6937962e6fc00a148d89bc5 (patch) | |
tree | 0867dde39e53e24ab719bc9115473f04bff47b57 /autotests/kconfignokdehometest.cpp | |
parent | a3d6957ec5f63b3d668a57b2ada13a3ce9715848 (diff) | |
download | kconfig-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/kconfignokdehometest.cpp')
-rw-r--r-- | autotests/kconfignokdehometest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/autotests/kconfignokdehometest.cpp b/autotests/kconfignokdehometest.cpp index 4ee17635..d9712ee1 100644 --- a/autotests/kconfignokdehometest.cpp +++ b/autotests/kconfignokdehometest.cpp @@ -39,7 +39,7 @@ void KConfigNoKdeHomeTest::testNoKdeHome() QStandardPaths::setTestModeEnabled(true); QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); QDir configDir(configPath); - configDir.removeRecursively(); + QVERIFY(configDir.removeRecursively()); QVERIFY(!QFile::exists(configPath)); // Do what kf5-config does, and ensure the config directory doesn't get created (#233892) @@ -52,7 +52,8 @@ void KConfigNoKdeHomeTest::testNoKdeHome() group.writeEntry("Key", "Value"); group.sync(); QVERIFY(QFile::exists(configPath)); - QVERIFY(QFile::exists(configPath + QStringLiteral("/kconfignokdehometestrc"))); + const QString rcFile = QCoreApplication::applicationName() + QStringLiteral("rc"); + QVERIFY(QFile::exists(configPath + QLatin1Char('/') + rcFile)); // Cleanup configDir.removeRecursively(); |