on xenial help sign in
Just document the locale thing for now
c7fde7eAlbert Astals
@@ -166,3 +166,7 @@ $ make tryDragHandle
166NB: Manual test or interation doesn't make sense for all components or classes,
166NB: Manual test or interation doesn't make sense for all components or classes,
167particularly the non-graphical ones. In such cases no "tryFoo" make target is
167particularly the non-graphical ones. In such cases no "tryFoo" make target is
168provided.
168provided.
169+
170+NB: The tests expect the locale to be the C locale, they may fail if run
171+under a different locale, if you get failures others can not reproduce
172+prepend 'LC_ALL=C' to the 'make test' command
tests/plugins/Utils/timeformattertest.cpp−11
@@ -21,15 +21,6 @@
21#include <QtTest>
21#include <QtTest>
22#include <QDebug>
22#include <QDebug>
23
23
24−class LCALLSetter
25−{
26−public:
27− LCALLSetter()
28− {
29− setenv("LC_ALL", "C", 1);
30− }
31−};
32−
33class TimeFormatterTest : public QObject
24class TimeFormatterTest : public QObject
34{
25{
35 Q_OBJECT
26 Q_OBJECT
@@ -72,8 +63,6 @@ private Q_SLOTS:
72 }
63 }
73};
64};
74
65
75−static LCALLSetter setter;
76−
77QTEST_GUILESS_MAIN(TimeFormatterTest)
66QTEST_GUILESS_MAIN(TimeFormatterTest)
78
67
79#include "timeformattertest.moc"
68#include "timeformattertest.moc"