autotests: Use Smart placement by default

Many tests were written with the smart placement in mind and fail now
because the default placement policy was changed to "centered"
This commit is contained in:
Vlad Zahorodnii 2021-11-29 09:53:53 +02:00
parent 3bb3c604c8
commit dcd9a7b9ea

View file

@ -58,6 +58,12 @@ WaylandTestApplication::WaylandTestApplication(OperationMode mode, int &argc, ch
qunsetenv("XKB_DEFAULT_VARIANT");
qunsetenv("XKB_DEFAULT_OPTIONS");
auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig);
KConfigGroup windowsGroup = config->group("Windows");
windowsGroup.writeEntry("Placement", Placement::policyToString(Placement::Smart));
windowsGroup.sync();
setConfig(config);
const auto ownPath = libraryPaths().last();
removeLibraryPath(ownPath);
addLibraryPath(ownPath);