Summary: | kformattest fails with installed kcoreaddons language package | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kcoreaddons | Reporter: | Ralf Habacker <ralf.habacker> |
Component: | general | Assignee: | Michael Pyne <mpyne> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kdelibs-bugs |
Priority: | NOR | ||
Version: | 5.49.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Ralf Habacker
2018-08-12 19:52:47 UTC
One of the problem is that the test case is designed not to use translation, but a translation is always loaded from the kcoreaddons library. This is configured in the cmake build system by calling ecm_create_qm_loader(kcoreaddons_QM_LOADER kcoreaddons5_qt) which adds loading of a translation to qAddPreRoutine() unconditional. This support needs to be disabled for the test app by not loading a translation if current locale is != 'C'. Second in main() 'C' locale needs to be set before using QCoreApplication. Unfortunally main is hidden in the macro QTEST_MAIN(KFormatTest) See https://phabricator.kde.org/D14779 for the related review |