summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2014-12-05 00:56:39 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2014-12-05 00:56:39 +0100
commit7073444c4f8405f0b8bb76ba9d58719ae2f1a776 (patch)
tree900ced472811ed8449a587c9f76635cffff3a829
parentc55e9e7e3cb38b07d1dd934ea68c1e97e660a517 (diff)
downloadsink-7073444c4f8405f0b8bb76ba9d58719ae2f1a776.tar.gz
sink-7073444c4f8405f0b8bb76ba9d58719ae2f1a776.zip
small cleanup
-rw-r--r--store/test/storagebenchmark.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/store/test/storagebenchmark.cpp b/store/test/storagebenchmark.cpp
index d42dea8..0bad138 100644
--- a/store/test/storagebenchmark.cpp
+++ b/store/test/storagebenchmark.cpp
@@ -6,7 +6,6 @@
6#include <fstream> 6#include <fstream>
7 7
8#include <QDebug> 8#include <QDebug>
9#include <QDir>
10#include <QString> 9#include <QString>
11#include <QTime> 10#include <QTime>
12 11
@@ -58,6 +57,12 @@ private Q_SLOTS:
58 filePath = testDataPath + "buffer.fb"; 57 filePath = testDataPath + "buffer.fb";
59 } 58 }
60 59
60 void cleanupTestCase()
61 {
62 Database db(testDataPath, dbName);
63 db.removeFromDisk();
64 }
65
61 void testWriteRead_data() 66 void testWriteRead_data()
62 { 67 {
63 QTest::addColumn<bool>("useDb"); 68 QTest::addColumn<bool>("useDb");
@@ -146,7 +151,6 @@ private Q_SLOTS:
146 { 151 {
147 Database db(testDataPath, dbName); 152 Database db(testDataPath, dbName);
148 qDebug() << "Database size [kb]: " << db.diskUsage()/1024; 153 qDebug() << "Database size [kb]: " << db.diskUsage()/1024;
149 db.removeFromDisk();
150 154
151 QFileInfo fileInfo(filePath); 155 QFileInfo fileInfo(filePath);
152 qDebug() << "File size [kb]: " << fileInfo.size()/1024; 156 qDebug() << "File size [kb]: " << fileInfo.size()/1024;