diff --git a/src/wayland/autotests/client/test_pointer_constraints.cpp b/src/wayland/autotests/client/test_pointer_constraints.cpp index a26ad81a0b..e8785e938d 100644 --- a/src/wayland/autotests/client/test_pointer_constraints.cpp +++ b/src/wayland/autotests/client/test_pointer_constraints.cpp @@ -241,7 +241,8 @@ void TestPointerConstraints::testLockPointer() QCOMPARE(serverLockedPointer->cursorPositionHint(), QPointF(-1., -1.)); QCOMPARE(lockedChangedSpy.count(), 2); QTEST(bool(serverSurface->lockedPointer()), "hasConstraintAfterUnlock"); - QTEST(pointerConstraintsChangedSpy.count(), "pointerChangedCount"); + QFETCH(int, pointerChangedCount); + QCOMPARE(pointerConstraintsChangedSpy.count(), pointerChangedCount); QVERIFY(unlockedSpy.wait()); QCOMPARE(unlockedSpy.count(), 1); QCOMPARE(lockedSpy.count(), 1); @@ -333,7 +334,8 @@ void TestPointerConstraints::testConfinePointer() QCOMPARE(serverConfinedPointer->isConfined(), false); QCOMPARE(confinedChangedSpy.count(), 2); QTEST(bool(serverSurface->confinedPointer()), "hasConstraintAfterUnlock"); - QTEST(pointerConstraintsChangedSpy.count(), "pointerChangedCount"); + QFETCH(int, pointerChangedCount); + QCOMPARE(pointerConstraintsChangedSpy.count(), pointerChangedCount); QVERIFY(unconfinedSpy.wait()); QCOMPARE(unconfinedSpy.count(), 1); QCOMPARE(confinedSpy.count(), 1);