diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-08 23:28:21 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-08 23:28:21 +0100 |
commit | 5fb9a6a9024eaf7b94f20eefcffce928adeaed78 (patch) | |
tree | 079ac077e062c20ea235238dda57f4053b8b360a /tests/dummyresourcetest.cpp | |
parent | 44744e281a56488c7ef257e12ca379ec4ceb2cdd (diff) | |
download | sink-5fb9a6a9024eaf7b94f20eefcffce928adeaed78.tar.gz sink-5fb9a6a9024eaf7b94f20eefcffce928adeaed78.zip |
Gather more timings
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r-- | tests/dummyresourcetest.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index c5b2f30..bfa4885 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp | |||
@@ -19,6 +19,9 @@ | |||
19 | class DummyResourceTest : public QObject | 19 | class DummyResourceTest : public QObject |
20 | { | 20 | { |
21 | Q_OBJECT | 21 | Q_OBJECT |
22 | |||
23 | QTime time; | ||
24 | |||
22 | private Q_SLOTS: | 25 | private Q_SLOTS: |
23 | void initTestCase() | 26 | void initTestCase() |
24 | { | 27 | { |
@@ -29,16 +32,18 @@ private Q_SLOTS: | |||
29 | ResourceConfig::addResource("org.kde.dummy.instance1", "org.kde.dummy"); | 32 | ResourceConfig::addResource("org.kde.dummy.instance1", "org.kde.dummy"); |
30 | } | 33 | } |
31 | 34 | ||
32 | void cleanup() | ||
33 | { | ||
34 | Sink::Store::removeDataFromDisk(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); | ||
35 | } | ||
36 | |||
37 | void init() | 35 | void init() |
38 | { | 36 | { |
39 | qDebug(); | 37 | qDebug(); |
40 | qDebug() << "-----------------------------------------"; | 38 | qDebug() << "-----------------------------------------"; |
41 | qDebug(); | 39 | qDebug(); |
40 | time.start(); | ||
41 | } | ||
42 | |||
43 | void cleanup() | ||
44 | { | ||
45 | qDebug() << "Test took " << time.elapsed(); | ||
46 | Sink::Store::removeDataFromDisk(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); | ||
42 | } | 47 | } |
43 | 48 | ||
44 | void testProperty() | 49 | void testProperty() |