diff --git a/tests/testlib/akonadistoragetestbase.cpp b/tests/testlib/akonadistoragetestbase.cpp --- a/tests/testlib/akonadistoragetestbase.cpp +++ b/tests/testlib/akonadistoragetestbase.cpp @@ -31,6 +31,7 @@ #include #include +#include #include "utils/mem_fn.h" @@ -759,7 +760,19 @@ QCOMPARE(spy.size(), 1); auto notifiedItem = spy.takeFirst().takeFirst().value(); QCOMPARE(notifiedItem.id(), item.id()); + + // KCalCore 4.83 fixes this bug +#if KCALCORE_VERSION < 0x045300 + QCOMPARE(notifiedItem.payload()->uid(), todo->uid()); + QCOMPARE(notifiedItem.payload()->summary(), todo->summary()); + QCOMPARE(notifiedItem.payload()->description(), todo->description()); + QEXPECT_FAIL("", "Bug introduced by 76c686bc1de3a5d16956a627744ce352bc28d12a in KCalCore", Continue); + QCOMPARE(*notifiedItem.payload(), *todo); + QEXPECT_FAIL("", "Bug introduced by 76c686bc1de3a5d16956a627744ce352bc28d12a in KCalCore", Continue); + QCOMPARE(notifiedItem.payload()->status(), todo->status()); +#else QCOMPARE(*notifiedItem.payload(), *todo); +#endif } void AkonadiStorageTestBase::shouldUseTransaction()