summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-09-18 19:28:51 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-09-18 19:28:51 (GMT)
commitdeed4f8794e4efde235731d4327da7db55c83578 (patch)
treeb485337abba39a40b0cc8ff4dc743ba21a7e2eff
parentdb3731bfcbf49e5f8cbd9a2d2fb7c1d1f3d1b702 (diff)
downloadlibkolabxml-deed4f8794e4efde235731d4327da7db55c83578.tar.gz
verify that the benchmarks actually do something useful.
-rw-r--r--tests/bindingstest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bindingstest.cpp b/tests/bindingstest.cpp
index c0a63c0..2e77be5 100644
--- a/tests/bindingstest.cpp
+++ b/tests/bindingstest.cpp
@@ -770,6 +770,7 @@ void BindingsTest::errorRecoveryTest()
void BindingsTest::BenchmarkRoundtripKolab()
{
const Kolab::Event &event = Kolab::readEvent(TEST_DATA_PATH "/testfiles/icalEvent.xml", true);
+ QVERIFY(!Kolab::errorOccurred());
std::string result = Kolab::writeEvent(event);
QBENCHMARK {
Kolab::readEvent(result, false);
@@ -779,6 +780,7 @@ void BindingsTest::BenchmarkRoundtripKolab()
void BindingsTest::BenchmarkRoundtrip()
{
const Kolab::Event &event = Kolab::readEvent(TEST_DATA_PATH "/testfiles/icalEvent.xml", true);
+ QVERIFY(!Kolab::errorOccurred());
std::string result;
QBENCHMARK {
result = Kolab::writeEvent(event);