[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:
parent
f2f2d79d86
commit
aa4d12a906
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue