TimeFormatterTest fails on non-US locale systems

Bug #1270861 reported by Mirco Müller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity8 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Running "make -C builddir test" fails on a system with a non-US locale (german in this case) reporting:

********* Start testing of TimeFormatterTest *********
 Config: Using QTest library 5.0.2, Qt 5.0.2
 PASS : TimeFormatterTest::initTestCase()
 PASS : TimeFormatterTest::testFormat()
 FAIL! : TimeFormatterTest::testFormatStrF() Compared values are not the same
    Actual (formatter.timeString()): 20-01-2014 04:20
    Expected (time.toString("dd-MM-yyyy hh:mmAP")): 20-01-2014 04:20PM
    Loc: [/tmp/bla/unity8-snap-decisions-states-merged/tests/plugins/Utils/timeformattertest.cpp(62)]
 PASS : TimeFormatterTest::cleanupTestCase()
 Totals: 3 passed, 1 failed, 0 skipped
 ********* Finished testing of TimeFormatterTest *********

Revision history for this message
Mirco Müller (macslow) wrote :

We agreed that tests expect the locale to be the C locale. Thus this is expected to fail. So for doing any test-runs a prepended 'LC_ALL=C' should be used. Therefore this bug is marked as "Won't fix".

Changed in unity8:
status: New → Won't Fix
Michał Sawicz (saviq)
affects: unity8 → unity8 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.