diff options
| author | Laurent Montel <montel@kde.org> | 2019-12-04 13:09:39 +0100 | 
|---|---|---|
| committer | Laurent Montel <montel@kde.org> | 2019-12-04 13:10:32 +0100 | 
| commit | 719920708b696ef5a5dbc3360672fb0c4cc282e4 (patch) | |
| tree | cf3928b40662c267151833ebd8003d204524caea | |
| parent | f366253557c695269afc65536b8c4fe9c79b9b71 (diff) | |
| download | kconfig-719920708b696ef5a5dbc3360672fb0c4cc282e4.tar.gz kconfig-719920708b696ef5a5dbc3360672fb0c4cc282e4.tar.bz2 | |
Make sure to execute test with english lang
| -rw-r--r-- | autotests/kconfigtest.cpp | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/autotests/kconfigtest.cpp b/autotests/kconfigtest.cpp index 546568f8..7bb2cf9e 100644 --- a/autotests/kconfigtest.cpp +++ b/autotests/kconfigtest.cpp @@ -102,6 +102,16 @@ static inline QString kdeGlobalsPath() {      return QDir::cleanPath(testConfigDir() + "..") + "/kdeglobals";  } +#ifndef Q_OS_WIN +void initLocale() +{ +    setenv("LC_ALL", "en_US.utf-8", 1); +    setenv("TZ", "UTC", 1); +} + +Q_CONSTRUCTOR_FUNCTION(initLocale) +#endif +  void KConfigTest::initTestCase()  {      // ensure we don't use files in the real config directory | 
