[autotests] Specify XCUROSR_THEME and XCURSOR_SIZE in pointer input test

Try to fix test on CI system. With neither a config nor the env variables
the cursor selection falls back to the default cursor theme, which might
not contain the cursors we need.
This commit is contained in:
Martin Gräßlin 2016-02-25 13:51:45 +01:00
parent f7feca678d
commit 166d282a9f

View file

@ -96,6 +96,9 @@ void PointerInputTest::initTestCase()
kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig));
qputenv("XCURSOR_THEME", QByteArrayLiteral("breeze_cursors"));
qputenv("XCURSOR_SIZE", QByteArrayLiteral("32"));
kwinApp()->start();
QVERIFY(workspaceCreatedSpy.wait());
QCOMPARE(screens()->count(), 2);