[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.
icc-effect-5.14.5
Martin Gräßlin 2016-02-25 13:51:45 +01:00
parent f7feca678d
commit 166d282a9f
1 changed files with 3 additions and 0 deletions

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