From 88085fd52f886692c9cbb534166e68b791d5abce Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 5 Dec 2014 09:29:37 +0100 Subject: port over 707344 by cmollekopf: small cleanup --- tests/storagebenchmark.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') 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 @@ #include #include -#include #include #include @@ -58,6 +57,12 @@ private Q_SLOTS: filePath = testDataPath + "buffer.fb"; } + void cleanupTestCase() + { + Storage store(testDataPath, dbName); + store.removeFromDisk(); + } + void testWriteRead_data() { QTest::addColumn("useDb"); @@ -146,7 +151,6 @@ private Q_SLOTS: { Storage store(testDataPath, dbName); qDebug() << "Database size [kb]: " << store.diskUsage()/1024; - store.removeFromDisk(); QFileInfo fileInfo(filePath); qDebug() << "File size [kb]: " << fileInfo.size()/1024; -- cgit v1.2.3