qt5base-lts/tests/auto/corelib
Edward Welbourne 828f533b32 Check POSIX rules during QTzTimeZone creation
Previously, an apparent POSIX rule would be saved and any defects in
it would only be discovered when trying to use it to generate
transitions. Instead, check that it has the right form during the
initial parsing of its data.

In the process, since checking for DST in the process is trivial,
implement a long-standing TODO to cache hasDaylightTime()'s
answer. The array it scanned was in any case being scanned during
construction, so detecting DST in init()'s scan is trivial; and its
failure to check the POSIX rule mean it failed to notice when zones
entirely specified by a POSIX rule have DST.

Adapt a test using a POSIX-only rule to verify it does know the zone
has DST; it did not, before this change.

Change-Id: I690c013d3331600f7348dae61c35d41e5599da70
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-04-27 14:12:35 +02:00
..
animation Port QPropertyAnimation::propertyName to the new property system 2021-04-20 15:56:39 +02:00
global Long live PRI*Qdatatypes 2021-04-25 15:24:45 +02:00
io Skip tst_QUrl::testThreading() under QEMU 2021-04-27 14:12:34 +02:00
itemmodels Fix case sensitivity handling QSFPM 2021-04-22 08:21:41 +02:00
kernel Fix QJniObject templates implementations 2021-04-23 15:43:28 +03:00
mimetypes Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
plugin Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
serialization Correct prefix reported for end element in QXmlStreamReader 2021-04-20 03:03:51 +02:00
text Add more tests for QList/QString/QBA 2021-04-27 14:12:34 +02:00
thread QThreadPool: obey the docs that say we always use at least 1 thread 2021-04-24 00:37:14 +00:00
time Check POSIX rules during QTzTimeZone creation 2021-04-27 14:12:35 +02:00
tools Add more tests for QList/QString/QBA 2021-04-27 14:12:34 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00