[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.
This commit is contained in:
Martin Gräßlin 2015-05-12 14:00:48 +02:00
parent 8a6cbfd874
commit 681211ca33

View file

@ -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"));