[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepimlibs/KDE/4.11] akonadi/calendar/tests: Stabilize unit-test.
From:       Sergio Martins <iamsergio () gmail ! com>
Date:       2013-10-11 15:20:24
Message-ID: E1VUeVs-0004cb-51 () scm ! kde ! org
[Download RAW message or body]

Git commit 4c1e00cbfbf2b1a97dea38ed5c3c5d1fa5289ce2 by Sergio Martins.
Committed on 11/10/2013 at 15:17.
Pushed by smartins into branch 'KDE/4.11'.

Stabilize unit-test.

The resource deciding to or not to do an ItemModifyJob is out
of kdepimlibs control so don't assume anything here.

M  +3    -2    akonadi/calendar/tests/etmcalendartest.cpp

http://commits.kde.org/kdepimlibs/4c1e00cbfbf2b1a97dea38ed5c3c5d1fa5289ce2

diff --git a/akonadi/calendar/tests/etmcalendartest.cpp b/akonadi/calendar/tests/etmcalendartest.cpp
index cd4321e..ba8aa07 100644
--- a/akonadi/calendar/tests/etmcalendartest.cpp
+++ b/akonadi/calendar/tests/etmcalendartest.cpp
@@ -296,9 +296,10 @@ void ETMCalendarTest::calendarIncidenceChanged(const Incidence::Ptr &incidence)
     Incidence::Ptr i3 = mCalendar->incidence(incidence->uid());
     QCOMPARE(i3->summary(), incidence->summary());
 
-    QVERIFY(mIncidencesToChange > 0);
+    if (mIncidencesToChange > 0) {
+        --mIncidencesToChange;
+    }
 
-    --mIncidencesToChange;
     checkExitLoop();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic