From aa4d12a9062bbd7804ce8539f78d8dc797dabe21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Sat, 8 Jul 2017 10:47:17 +0200 Subject: [PATCH] [autotests] Ensure TestDontCrashUseractionsMenu uses breeze The test introduced with 962a2e39ee7a476e416f067dd31f10e3a4a63784 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. --- autotests/integration/dont_crash_useractions_menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autotests/integration/dont_crash_useractions_menu.cpp b/autotests/integration/dont_crash_useractions_menu.cpp index 0d318e2a9f..486669b043 100644 --- a/autotests/integration/dont_crash_useractions_menu.cpp +++ b/autotests/integration/dont_crash_useractions_menu.cpp @@ -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);