Commit 74e54bc8 authored by Volker Krause's avatar Volker Krause

Make tests independent of locale configuration

These fail with a non-English locale.
parent 945f832d
......@@ -11,6 +11,14 @@
#include <QSignalSpy>
#include <QStandardPaths>
void initLocale()
{
qputenv("LC_ALL", "en_US.utf-8");
qputenv("LANG", "C");
}
Q_CONSTRUCTOR_FUNCTION(initLocale)
class PkPassManagerTest : public QObject
{
Q_OBJECT
......
......@@ -15,6 +15,14 @@
#include <QSignalSpy>
#include <QStandardPaths>
void initLocale()
{
qputenv("LC_ALL", "en_US.utf-8");
qputenv("LANG", "C");
}
Q_CONSTRUCTOR_FUNCTION(initLocale)
class StatisticsTest : public QObject
{
Q_OBJECT
......
......@@ -12,6 +12,14 @@
#include <QSignalSpy>
#include <QStandardPaths>
void initLocale()
{
qputenv("LC_ALL", "en_US.utf-8");
qputenv("LANG", "C");
}
Q_CONSTRUCTOR_FUNCTION(initLocale)
class TripGroupTest : public QObject
{
Q_OBJECT
......
Markdown is supported
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