From 3c6e4ac0d1983aa37580331b7a4920f32fcdc7ca Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 24 Mar 2020 22:08:36 +0000 Subject: [PATCH] [autotests/client] Set event queue on registry Summary: Otherwise events are dispatched from the wrong thread. Test Plan: Let's see if Jenkins to see if it hits that race condition again Reviewers: #kwin Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D28263 --- src/wayland/autotests/client/test_wayland_surface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/autotests/client/test_wayland_surface.cpp b/src/wayland/autotests/client/test_wayland_surface.cpp index 4495195353..d8a9a0c18f 100644 --- a/src/wayland/autotests/client/test_wayland_surface.cpp +++ b/src/wayland/autotests/client/test_wayland_surface.cpp @@ -510,6 +510,7 @@ void TestWaylandSurface::testMultipleSurfaces() using namespace KWayland::Client; using namespace KWayland::Server; Registry registry; + registry.setEventQueue(m_queue); QSignalSpy shmSpy(®istry, SIGNAL(shmAnnounced(quint32,quint32))); registry.create(m_connection->display()); QVERIFY(registry.isValid());