diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2012-05-25 20:00:53 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-25 22:08:33 +0200 |
commit | 75a9436d2bc16803cd1e5ea9e60fc156a1a22dbc (patch) | |
tree | 77233c246e715bcce12e2b9d8c7e2f0dbd285af4 /tests | |
parent | deac81d4ef114ffc157467183d02d539618a14d1 (diff) |
Changed the way we find path to private partitions.
Change-Id: I2ee101126b494287ae8d4a62601ed49d510cf56a
Reviewed-by: Tapani Mikola <tapani.mikola@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qjsondbrequest/testqjsondbrequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qjsondbrequest/testqjsondbrequest.cpp b/tests/auto/qjsondbrequest/testqjsondbrequest.cpp index d2b6d13..86a1e82 100644 --- a/tests/auto/qjsondbrequest/testqjsondbrequest.cpp +++ b/tests/auto/qjsondbrequest/testqjsondbrequest.cpp @@ -126,11 +126,11 @@ void TestQJsonDbRequest::cleanupTestCase() struct passwd *pwd = getpwnam(qgetenv("USER")); if (pwd) { QDir homePartition(QString::fromLatin1("%1/.jsondb").arg(QString::fromUtf8(pwd->pw_dir))); - foreach (const QString &file, homePartition.entryList()) + foreach (const QString &file, homePartition.entryList(QStringList() << QLatin1String("*.db"))) QFile::remove(homePartition.absoluteFilePath(file)); homePartition.cdUp(); - homePartition.rmpath(QStringLiteral(".jsondb")); + homePartition.rmdir(QStringLiteral(".jsondb")); } stopDaemon(); |