diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-05 13:00:56 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-05 13:00:56 +0100 |
commit | 1a429fd3103c16899f1f7be25046bb63b2b314c3 (patch) | |
tree | 7277b52d6026ca3ec081fbb2e7649a4c90718ede | |
parent | 130affe4addb1aff1618d8fb849889b2d4453ef2 (diff) | |
download | sink-1a429fd3103c16899f1f7be25046bb63b2b314c3.tar.gz sink-1a429fd3103c16899f1f7be25046bb63b2b314c3.zip |
make tests declare ReadWrite when writing
-rw-r--r-- | tests/storagebenchmark.cpp | 2 | ||||
-rw-r--r-- | tests/storagetest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/storagebenchmark.cpp b/tests/storagebenchmark.cpp index f9fea7c..6010539 100644 --- a/tests/storagebenchmark.cpp +++ b/tests/storagebenchmark.cpp | |||
@@ -79,7 +79,7 @@ private Q_SLOTS: | |||
79 | 79 | ||
80 | Storage *store = 0; | 80 | Storage *store = 0; |
81 | if (useDb) { | 81 | if (useDb) { |
82 | store = new Storage(testDataPath, dbName); | 82 | store = new Storage(testDataPath, dbName, Storage::ReadWrite); |
83 | } | 83 | } |
84 | 84 | ||
85 | std::ofstream myfile; | 85 | std::ofstream myfile; |
diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp index 242e424..3981c4b 100644 --- a/tests/storagetest.cpp +++ b/tests/storagetest.cpp | |||
@@ -19,7 +19,7 @@ private: | |||
19 | 19 | ||
20 | void populate(int count) | 20 | void populate(int count) |
21 | { | 21 | { |
22 | Storage storage(testDataPath, dbName); | 22 | Storage storage(testDataPath, dbName, Storage::ReadWrite); |
23 | for (int i = 0; i < count; i++) { | 23 | for (int i = 0; i < count; i++) { |
24 | //This should perhaps become an implementation detail of the db? | 24 | //This should perhaps become an implementation detail of the db? |
25 | if (i % 10000 == 0) { | 25 | if (i % 10000 == 0) { |