TimeFormatterTest does not set environment properly.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity8 (Ubuntu) |
Fix Released
|
Medium
|
Andrea Cimitan |
Bug Description
Trying to compile binary package for unity8 with bzr bd fails with unit test failure:
FAIL! : TimeFormatterTe
Actual (formatter.
Expected (time.toString(
Loc: [/home/
See that "IP". That comes from my locale. In Finnish PM is IltaPäivä -> IP .
Compiling again a few minutes later I got "AP" (for Finnish AamuPäivä).
The test uses QDateTime which probably picks up my system locale correctly and gives the localized postfixes.
So, the test should set up locale to en_US before executing to get reliable results on different systems.
My locale:
$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE=
LC_NUMERIC=
LC_TIME=fi_FI.UTF-8
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=fi_FI.UTF-8
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
Related branches
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Michał Sawicz: Approve
- Albert Astals Cid (community): Approve
-
Diff: 41 lines (+3/-6)3 files modifiedCODING (+0/-4)
tests/plugins/Utils/CMakeLists.txt (+2/-1)
tests/qmltests/CMakeLists.txt (+1/-1)
Changed in unity8: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in unity8: | |
assignee: | nobody → Andrea Cimitan (cimi) |
Changed in unity8: | |
status: | Triaged → In Progress |
Changed in unity8: | |
status: | In Progress → Fix Released |
Changed in unity8 (Ubuntu): | |
status: | New → Fix Released |
Changed in unity8 (Ubuntu): | |
assignee: | nobody → Andrea Cimitan (cimi) |
importance: | Undecided → Medium |
no longer affects: | unity8 |
This is documented in the CODING file