force a lc_time to make sure the dummyTest passes

if the system locale is not en_US longMonthName might produce a localized
string, failing the qcompare.

REVIEW: 128067
This commit is contained in:
Harald Sitter 2016-06-01 10:39:13 +02:00
parent b099bdd723
commit f071536649

View file

@ -24,6 +24,13 @@
#include <QtTest>
static void initEnv()
{
// Force LC_TIME=C to make sure longMonthName returns as en_US.
setenv("LC_TIME", "C", 1);
}
Q_CONSTRUCTOR_FUNCTION(initEnv)
QTEST_GUILESS_MAIN(NetworkPackageTests);
void NetworkPackageTests::initTestCase()