From 93a08ba947bed8325cd0c766e3fbd06fc03370c3 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 13 Jul 2020 23:54:51 +0200 Subject: [PATCH] Fix keyboard layout tests Don't give the InputConfig a separate config instance. I've seen it being changed after having initialized the xkb instance which would break the shared instance. Using a simple config rather than reading the configuration from the actual code-path shouldn't make a difference as a test it will be using ~/.qttest which should be cleaned upp --- autotests/integration/keyboard_layout_test.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/autotests/integration/keyboard_layout_test.cpp b/autotests/integration/keyboard_layout_test.cpp index 396c710eb4..d9de5f12f3 100644 --- a/autotests/integration/keyboard_layout_test.cpp +++ b/autotests/integration/keyboard_layout_test.cpp @@ -82,7 +82,6 @@ void KeyboardLayoutTest::initTestCase() kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); kwinApp()->setKxkbConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); - InputConfig::self()->setInputConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); kwinApp()->start(); QVERIFY(workspaceCreatedSpy.wait());