From 75a9436d2bc16803cd1e5ea9e60fc156a1a22dbc Mon Sep 17 00:00:00 2001 From: Denis Dzyubenko Date: Fri, 25 May 2012 20:00:53 +0200 Subject: Changed the way we find path to private partitions. Change-Id: I2ee101126b494287ae8d4a62601ed49d510cf56a Reviewed-by: Tapani Mikola --- tests/auto/qjsondbrequest/testqjsondbrequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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(); -- cgit v1.2.3