summaryrefslogtreecommitdiffstats
path: root/tests/auto/client/tst_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/client/tst_client.cpp')
-rw-r--r--tests/auto/client/tst_client.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/client/tst_client.cpp b/tests/auto/client/tst_client.cpp
index 9c3138bcb..113f9d9a8 100644
--- a/tests/auto/client/tst_client.cpp
+++ b/tests/auto/client/tst_client.cpp
@@ -149,11 +149,7 @@ private:
void tst_WaylandClient::screen()
{
- QCoreApplication::processEvents(QEventLoop::AllEvents);
-
QTRY_COMPARE(QGuiApplication::primaryScreen()->size(), screenSize);
- // discard the cursor surface created by the QWaylandInputDevice
- compositor->discardSurfaces();
}
void tst_WaylandClient::createDestroyWindow()
@@ -252,6 +248,11 @@ int main(int argc, char **argv)
setenv("XDG_RUNTIME_DIR", ".", 1);
setenv("QT_QPA_PLATFORM", "wayland", 1); // force QGuiApplication to use wayland plugin
+ // wayland-egl hangs in the test setup when we try to initialize. Until it gets
+ // figured out, avoid clientBufferIntegration() from being called in
+ // QWaylandWindow::createDecorations().
+ setenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1", 1);
+
MockCompositor compositor;
compositor.setOutputGeometry(QRect(QPoint(), screenSize));