qt5base-lts/tests/auto/corelib/tools/qstring
Edward Welbourne 76dfda1ad1 Use RAII to handle setting of default locale in tst_QString
Various tests were setting the default locale and relying on cleanup()
to "restore" the C locale; which needn't actually be the locale we
started out in and, in any case, was the wrong locale for some tests.
So handle this via an RAII class that records the actual prior locale
and restores it on destruction.

Fixes: QTBUG-73116
Change-Id: If44f7cb8c6e0ce81be396ac1ea8bab7038a86729
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-01-22 16:42:29 +00:00
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
double_data.h Updated license headers 2016-01-21 18:55:18 +00:00
qstring.pro Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00
tst_qstring_mac.mm Updated license headers 2016-01-21 18:55:18 +00:00
tst_qstring.cpp Use RAII to handle setting of default locale in tst_QString 2019-01-22 16:42:29 +00:00