From 166d282a9f468d317cd0c66f72bcc060a9d13afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 25 Feb 2016 13:51:45 +0100 Subject: [PATCH] [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. --- autotests/wayland/pointer_input.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autotests/wayland/pointer_input.cpp b/autotests/wayland/pointer_input.cpp index 982d575d89..014e456c66 100644 --- a/autotests/wayland/pointer_input.cpp +++ b/autotests/wayland/pointer_input.cpp @@ -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);