Default string formatting test to C locale, add localized run
ClosedPublic

Authored by bruns on Mar 25 2019, 12:44 AM.

Details

Summary

Using the user locale leads to random test failures, as arbitrary parts
may have been translated.

For localized debugging of the formatting functions, the test can be
run with the "--localized" option, using the current user locale. The
localized version is added to the test suite to increase code coverage,
but failures are ignored. In verbose mode, the formatted and localized
strings are shown.

Depends on D20032

Test Plan

ctest
ctest -V -R propertyinfo
LANG=ar ./build/bin/propertyinfotest_bin --localized

Diff Detail

Repository
R286 KFileMetaData
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Mar 25 2019, 12:44 AM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptMar 25 2019, 12:44 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Mar 25 2019, 12:44 AM
astippich accepted this revision.Apr 4 2019, 5:21 PM

works nicely!

This revision is now accepted and ready to land.Apr 4 2019, 5:21 PM
This revision was automatically updated to reflect the committed changes.