diff --git a/src/wayland/autotests/client/test_xdg_foreign.cpp b/src/wayland/autotests/client/test_xdg_foreign.cpp index 8f234b96ad..4c28614ba5 100644 --- a/src/wayland/autotests/client/test_xdg_foreign.cpp +++ b/src/wayland/autotests/client/test_xdg_foreign.cpp @@ -260,8 +260,8 @@ void TestForeign::testDeleteImported() QVERIFY(transientSpy.wait()); QCOMPARE(transientSpy.first().first().value(), m_childSurfaceInterface.data()); - QCOMPARE(transientSpy.first().at(1).value(), nullptr); - QCOMPARE(m_foreignInterface->transientFor(m_childSurfaceInterface), nullptr); + QVERIFY(!transientSpy.first().at(1).value()); + QVERIFY(!m_foreignInterface->transientFor(m_childSurfaceInterface)); } void TestForeign::testDeleteChildSurface() @@ -279,7 +279,7 @@ void TestForeign::testDeleteChildSurface() QSignalSpy surfaceDestroyedSpy(m_childSurfaceInterface, SIGNAL(destroyed())); QVERIFY(surfaceDestroyedSpy.wait()); - QCOMPARE(transientSpy.first().at(0).value(), nullptr); + QVERIFY(!transientSpy.first().at(0).value()); QCOMPARE(transientSpy.first().at(1).value(), m_exportedSurfaceInterface.data()); } @@ -299,8 +299,8 @@ void TestForeign::testDeleteParentSurface() QVERIFY(transientSpy.wait()); QCOMPARE(transientSpy.first().first().value(), m_childSurfaceInterface.data()); - QCOMPARE(transientSpy.first().at(1).value(), nullptr); - QCOMPARE(m_foreignInterface->transientFor(m_childSurfaceInterface), nullptr); + QVERIFY(!transientSpy.first().at(1).value()); + QVERIFY(!m_foreignInterface->transientFor(m_childSurfaceInterface)); } void TestForeign::testDeleteExported() @@ -318,8 +318,8 @@ void TestForeign::testDeleteExported() QVERIFY(destroyedSpy.wait()); QCOMPARE(transientSpy.first().first().value(), m_childSurfaceInterface.data()); - QCOMPARE(transientSpy.first().at(1).value(), nullptr); - QCOMPARE(m_foreignInterface->transientFor(m_childSurfaceInterface), nullptr); + QVERIFY(!transientSpy.first().at(1).value()); + QVERIFY(!m_foreignInterface->transientFor(m_childSurfaceInterface)); QVERIFY(!m_imported->isValid()); }