Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2016-07-17 22:10:07 +0300
committerKlaas Freitag <freitag@owncloud.com>2016-07-17 22:10:07 +0300
commit78caa1a7123220e80964e0da76c1e933c2f91765 (patch)
tree174d826dbd196cab16ec0993530a1e4615baaed6 /test/testsyncjournaldb.cpp
parent0884ad6517a3811d8c172ef0a52538b57208602f (diff)
Fix tests for syncjournaldb
Diffstat (limited to 'test/testsyncjournaldb.cpp')
-rw-r--r--test/testsyncjournaldb.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/testsyncjournaldb.cpp b/test/testsyncjournaldb.cpp
index 3550750a6..19c92259a 100644
--- a/test/testsyncjournaldb.cpp
+++ b/test/testsyncjournaldb.cpp
@@ -13,19 +13,15 @@
using namespace OCC;
-namespace {
-
-const char testdbC[] = "/tmp";
-}
-
class TestSyncJournalDB : public QObject
{
Q_OBJECT
public:
TestSyncJournalDB()
- : _db(testdbC)
{
+ const QString testdb("/tmp/csync-test.db");
+ _db.setDatabaseFilePath( testdb );
}
QDateTime dropMsecs(QDateTime time)
@@ -41,6 +37,8 @@ private slots:
void cleanupTestCase()
{
+ const QString file = _db.databaseFilePath();
+ QFile::remove(file);
}
void testFileRecord()