Commit db335199 authored by Volker Krause's avatar Volker Krause
Browse files

Set test locale earlier

With the port of KContact to KI18nLocalData we need this in order for the
country name detection to work properly.
parent 920eb3db
Pipeline #87571 passed with stage
in 13 minutes and 32 seconds
......@@ -23,6 +23,14 @@
#include <QProcess>
#include <QTest>
void initLocale()
{
// use some exotic locale to ensure the date/time parsing doesn't just work by luck
qputenv("LANG", "fr_FR");
}
Q_CONSTRUCTOR_FUNCTION(initLocale)
using namespace KItinerary;
/** Note: this test requires external test data that is not publicly available,
......@@ -39,9 +47,6 @@ private:
private Q_SLOTS:
void initTestCase()
{
// use some exotic locale to ensure the date/time parsing doesn't just work by luck
QLocale::setDefault(QLocale(QStringLiteral("fr_FR")));
//m_engine.setUseSeparateProcess(true);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment