From 681211ca33fb46a5ca284d2203b8d8aa85259b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 12 May 2015 14:00:48 +0200 Subject: [PATCH] [autotests] Improve stability of TestWaylandFullscreenShell Apparently we need to add a small delay after starting weston otherwise it fails to connect on the CI system. Additionally we switch to using headless-backend.so which should also make the setup more robust. --- src/wayland/autotests/client/test_wayland_fullscreen_shell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wayland/autotests/client/test_wayland_fullscreen_shell.cpp b/src/wayland/autotests/client/test_wayland_fullscreen_shell.cpp index 56fbebb544..cd490076c0 100644 --- a/src/wayland/autotests/client/test_wayland_fullscreen_shell.cpp +++ b/src/wayland/autotests/client/test_wayland_fullscreen_shell.cpp @@ -60,10 +60,11 @@ void TestWaylandFullscreenShell::init() m_westonProcess->setProgram(QStringLiteral("weston")); m_westonProcess->setArguments(QStringList({QStringLiteral("--socket=%1").arg(s_socketName), - QStringLiteral("--use-pixman"), + QStringLiteral("--backend=headless-backend.so"), QStringLiteral("--shell=fullscreen-shell.so")})); m_westonProcess->start(); QVERIFY(m_westonProcess->waitForStarted()); + QTest::qWait(500); // wait for the socket to appear QDir runtimeDir(qgetenv("XDG_RUNTIME_DIR"));