Update QTimeZone benchmark's list of tested zones

It purports to be a list of those named in QDateTime's tests, but was
a bit out of date. In the process, sort them into somewhat coherent
order (to make it easier to verify whether one is missing next time I
check) and reformat.

Pick-to: 6.4 6.3 6.2
Change-Id: I16e7ded6f8b00e226513bd06d6174a79f7a0c675
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Edward Welbourne 2022-07-28 17:35:00 +02:00
parent 836c7f2b30
commit 0ed8987078

View File

@ -35,15 +35,22 @@ static QList<QByteArray> enoughZones()
for (conat auto &name : available)
result << name;
#else
QList<QByteArray> result { QByteArray("UTC"),
// Those named overtly in tst_QDateTime:
QByteArray("Europe/Oslo"), QByteArray("America/Vancouver"),
QByteArray("Europe/Berlin"), QByteArray("America/Sao_Paulo"),
QByteArray("Pacific/Auckland"), QByteArray("Australia/Eucla"),
QByteArray("Asia/Kathmandu"), QByteArray("Pacific/Kiritimati"),
QByteArray("Pacific/Apia"), QByteArray("UTC+12:00"),
QByteArray("Australia/Sydney"), QByteArray("Asia/Singapore"),
QByteArray("Australia/Brisbane") };
QList<QByteArray> result {
QByteArray("UTC"),
// Those named overtly in tst_QDateTime - special cases first:
QByteArray("UTC-02:00"), QByteArray("UTC+02:00"), QByteArray("UTC+12:00"),
QByteArray("Etc/GMT+3"), QByteArray("GMT-2"), QByteArray("GMT"),
// ... then ordinary names in alphabetic order:
QByteArray("America/New_York"), QByteArray("America/Sao_Paulo"),
QByteArray("America/Vancouver"),
QByteArray("Asia/Kathmandu"), QByteArray("Asia/Singapore"),
QByteArray("Australia/Brisbane"), QByteArray("Australia/Eucla"),
QByteArray("Australia/Sydney"),
QByteArray("Europe/Berlin"), QByteArray("Europe/Helsinki"),
QByteArray("Europe/Rome"), QByteArray("Europe/Oslo"),
QByteArray("Pacific/Apia"), QByteArray("Pacific/Auckland"),
QByteArray("Pacific/Kiritimati")
};
#endif
result << QByteArray("Vulcan/ShiKahr"); // invalid: also worth testing
return result;