Commit 2d0106b6 authored by Laurent Montel's avatar Laurent Montel 😁

Fix autotest even if lang is not "C"

parent 4aba637f
......@@ -29,10 +29,16 @@
#include <QFileInfo>
QTEST_MAIN(AddressTest)
#ifndef Q_OS_WIN
void initLocale()
{
setenv("LC_ALL", "en_US.utf-8", 1);
}
Q_CONSTRUCTOR_FUNCTION(initLocale)
#endif
void AddressTest::initTestCase()
{
setenv("LANG", "C", 1);
}
void AddressTest::emptyTest()
......
......@@ -24,6 +24,14 @@
QTEST_MAIN(PhoneNumberTest)
#ifndef Q_OS_WIN
void initLocale()
{
setenv("LC_ALL", "en_US.utf-8", 1);
}
Q_CONSTRUCTOR_FUNCTION(initLocale)
#endif
void PhoneNumberTest::emptyTest()
{
KContacts::PhoneNumber number;
......
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