summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcebenchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dummyresourcebenchmark.cpp')
-rw-r--r--tests/dummyresourcebenchmark.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp
index 8c6afb4..d0ecef7 100644
--- a/tests/dummyresourcebenchmark.cpp
+++ b/tests/dummyresourcebenchmark.cpp
@@ -50,7 +50,7 @@ private slots:
50 void testCommandResponsiveness() 50 void testCommandResponsiveness()
51 { 51 {
52 // Test responsiveness including starting the process. 52 // Test responsiveness including starting the process.
53 Sink::Store::removeDataFromDisk("sink.dummy.instance1").exec().waitForFinished(); 53 VERIFYEXEC(Sink::Store::removeDataFromDisk("sink.dummy.instance1"));
54 54
55 QTime time; 55 QTime time;
56 time.start(); 56 time.start();
@@ -76,13 +76,13 @@ private slots:
76 QTRY_VERIFY(gotNotification); 76 QTRY_VERIFY(gotNotification);
77 77
78 QVERIFY2(duration < 100, QString::fromLatin1("Processing a create command took more than 100ms: %1").arg(duration).toLatin1()); 78 QVERIFY2(duration < 100, QString::fromLatin1("Processing a create command took more than 100ms: %1").arg(duration).toLatin1());
79 Sink::ResourceControl::shutdown("sink.dummy.instance1").exec().waitForFinished(); 79 VERIFYEXEC(Sink::ResourceControl::shutdown("sink.dummy.instance1"));
80 qDebug() << "Single command took [ms]: " << duration; 80 qDebug() << "Single command took [ms]: " << duration;
81 } 81 }
82 82
83 void testWriteToFacade() 83 void testWriteToFacade()
84 { 84 {
85 Sink::Store::removeDataFromDisk("sink.dummy.instance1").exec().waitForFinished(); 85 VERIFYEXEC(Sink::Store::removeDataFromDisk("sink.dummy.instance1"));
86 86
87 QTime time; 87 QTime time;
88 time.start(); 88 time.start();
@@ -147,7 +147,7 @@ private slots:
147 147
148 void testWriteInProcess() 148 void testWriteInProcess()
149 { 149 {
150 Sink::Store::removeDataFromDisk("sink.dummy.instance1").exec().waitForFinished(); 150 VERIFYEXEC(Sink::Store::removeDataFromDisk("sink.dummy.instance1"));
151 QTime time; 151 QTime time;
152 time.start(); 152 time.start();
153 153
@@ -235,7 +235,7 @@ private slots:
235 // This allows to run individual parts without doing a cleanup, but still cleaning up normally 235 // This allows to run individual parts without doing a cleanup, but still cleaning up normally
236 void testCleanupForCompleteTest() 236 void testCleanupForCompleteTest()
237 { 237 {
238 Sink::Store::removeDataFromDisk("sink.dummy.instance1").exec().waitForFinished(); 238 VERIFYEXEC(Sink::Store::removeDataFromDisk("sink.dummy.instance1"));
239 } 239 }
240 240
241private: 241private: