[autotests] Ensure TestDontCrashUseractionsMenu uses breeze

The test introduced with 962a2e39ee is
meant to be used with the breeze widget style as that one triggered the
crashy code. Given the test coverage build.kde.org does not run with the
breeze widget style, so enforce this through manual loading.
This commit is contained in:
Martin Flöser 2017-07-08 10:47:17 +02:00
parent f2f2d79d86
commit aa4d12a906

View file

@ -65,6 +65,9 @@ void TestDontCrashUseractionsMenu::initTestCase()
QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2));
QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit()));
// force style to breeze as that's the one which triggered the crash
QVERIFY(kwinApp()->setStyle(QStringLiteral("breeze")));
kwinApp()->start();
QVERIFY(workspaceCreatedSpy.wait());
QCOMPARE(screens()->count(), 2);