diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2015-04-22 17:00:09 +0200 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2015-04-23 07:58:07 +0000 |
commit | 611734729f590623455965017567ec7c9db4f9a4 (patch) | |
tree | ffc855ce13ab9ce10af4b16541582944fe0027e5 /tests | |
parent | d7ee26965f5fac77e8609c1d812198421023c11c (diff) |
Force to use English language for QML auto tests
Moreover, localization setting via QtWebEngine is fixed. System
localization setting can be overridden by --lang command line argument.
Task-number: QTBUG-45715
Change-Id: I39f3a891e55ee47a57afc394e849ea02b0c76ad5
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/qmltests/tst_qmltests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/tst_qmltests.cpp b/tests/auto/quick/qmltests/tst_qmltests.cpp index 4f4f847be..1ef8be582 100644 --- a/tests/auto/quick/qmltests/tst_qmltests.cpp +++ b/tests/auto/quick/qmltests/tst_qmltests.cpp @@ -49,6 +49,9 @@ int main(int argc, char **argv) qputenv("QML2_IMPORT_PATH", QByteArray(TESTS_SOURCE_DIR "qmltests/mock-delegates")); QScopedPointer<Application> app; + // Force to use English language for testing due to error message checks + QLocale::setDefault(QLocale("en")); + if (!QCoreApplication::instance()) app.reset(new Application(argc, argv)); QtWebEngine::initialize(); |