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:
parent
b099bdd723
commit
f071536649
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue