qt5base-lts/tests/auto/corelib
Edward Welbourne 7fa8315eb1 Fix handling of a POSIX zone rule describing permanent DST
The description necessarily has fake transitions at start and end of
the year, potentially outside the year. These transitions should not
be reported by QTzTimeZonePrivate as transitions, although its data()
must find a "transition" whose data it can use (as in the permanent
standard time case, which could potentially be represented the same
way, although there's a saner way to do so, that the code already
handles) to report the zone's properties.

In the process, fix (and make more straightforward) the convoluted
decision-making code that was deciding which transitions to include in
the returned list. It was assuming invalidMSecs() would be set as the
atMSecsSinceEpoch of a transition, although this is computed in a way
that makes that value most unlikely, even when the result is invalid.
It also rather confusingly mixed < 0 tests as tests for overflow with
the one < 0 test that's about ignoring DST before 1970. Also added
comments to clarify some of what's going on there.

Expanded a recently-added test of a permanent DST zone to verify this
now works correctly.

Change-Id: Ia8d98f433fb1e479dba5479220a62196c30f0244
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 Fix handling of a POSIX zone rule describing permanent DST 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