Fix tests for syncjournaldb

This commit is contained in:
Klaas Freitag 2016-07-17 21:10:07 +02:00
parent 0884ad6517
commit 78caa1a712

View file

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