summaryrefslogtreecommitdiffstats
path: root/tests/storagebenchmark.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-05 09:29:37 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-05 09:29:37 +0100
commit88085fd52f886692c9cbb534166e68b791d5abce (patch)
tree380d6f80dbad93b0a30f5b3bfddbec2a82c9514a /tests/storagebenchmark.cpp
parent767312e2063f4e58af3de0f27aba52de49e14295 (diff)
downloadsink-88085fd52f886692c9cbb534166e68b791d5abce.tar.gz
sink-88085fd52f886692c9cbb534166e68b791d5abce.zip
port over 707344 by cmollekopf: small cleanup
Diffstat (limited to 'tests/storagebenchmark.cpp')
-rw-r--r--tests/storagebenchmark.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/storagebenchmark.cpp b/tests/storagebenchmark.cpp
index 15da9da..f9fea7c 100644
--- a/tests/storagebenchmark.cpp
+++ b/tests/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 Storage store(testDataPath, dbName);
63 store.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 Storage store(testDataPath, dbName); 152 Storage store(testDataPath, dbName);
148 qDebug() << "Database size [kb]: " << store.diskUsage()/1024; 153 qDebug() << "Database size [kb]: " << store.diskUsage()/1024;
149 store.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;