on xenial help sign in
Do not QCOMPARE a bool against 1
8eae719Albert Astals Cid
tests/libs/UbuntuGestures/tst_TouchRegistry.cpp+1−1
@@ -712,7 +712,7 @@ void tst_TouchRegistry::rejectingTouchfterItsEnd()
712 touchRegistry->removeCandidateOwnerForTouch(0, &earlyCandidate);
712 touchRegistry->removeCandidateOwnerForTouch(0, &earlyCandidate);
713
713
714 QCOMPARE(lateCandidate.ownedTouches.count(), 1);
714 QCOMPARE(lateCandidate.ownedTouches.count(), 1);
715− QCOMPARE(lateCandidate.ownedTouches.contains(0), 1);
715+ QVERIFY(lateCandidate.ownedTouches.contains(0));
716
716
717 // Check that there's no trace left of touch 0 as we no longer need to keep tabs on it.
717 // Check that there's no trace left of touch 0 as we no longer need to keep tabs on it.
718 QVERIFY(!touchRegistry->findTouchInfo(0));
718 QVERIFY(!touchRegistry->findTouchInfo(0));