summaryrefslogtreecommitdiffstats
path: root/tests/storagetest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storagetest.cpp')
-rw-r--r--tests/storagetest.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp
index a771042..a405de0 100644
--- a/tests/storagetest.cpp
+++ b/tests/storagetest.cpp
@@ -120,6 +120,19 @@ private Q_SLOTS:
120 storage.removeFromDisk(); 120 storage.removeFromDisk();
121 } 121 }
122 122
123 void testTurnReadToWrite()
124 {
125 populate(3);
126 Akonadi2::Storage store(testDataPath, dbName, Akonadi2::Storage::ReadWrite);
127 store.scan("key1", [&](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool {
128 store.remove(keyValue, keySize, [](const Akonadi2::Storage::Error &) {
129 QVERIFY(false);
130 });
131 return false;
132 });
133 store.removeFromDisk();
134 }
135
123 void testConcurrentRead() 136 void testConcurrentRead()
124 { 137 {
125 const int count = 10000; 138 const int count = 10000;