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:
-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()