qt5base-lts/tests/auto
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
..
bic/data Add binary compatibility files for Qt 6.0.0 2021-04-08 06:34:13 +00:00
cmake CMake: Fix tst_qaddpreroutine to work with static builds 2021-04-26 19:35:55 +02:00
concurrent Fix gcc warnings from having only one of assignment/copy 2021-04-11 19:53:51 +02:00
corelib Fix handling of a POSIX zone rule describing permanent DST 2021-04-27 14:12:35 +02:00
dbus Port of QDBusServiceWatcher::watchMode to new property system 2021-04-19 15:18:46 +02:00
gui Fix tst_qicon for fractional dpr 2021-04-20 21:33:00 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network Fix linking on Windows when SSL is not configured 2021-04-26 14:44:51 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other QObject: port to new property system 2021-04-21 15:34:28 +02:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql SQLite: Handle tables and fields with a dot in the name correctly 2021-04-23 10:46:58 +02:00
testlib Fix QAbstractItemModelTester false positive 2021-04-26 13:44:51 +01:00
tools Silence a bunch of gcc warnings for the moc test 2021-03-29 15:59:48 +02:00
widgets Fix QTreeModel calling beginRemoveRows twice 2021-04-26 13:44:51 +01:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Build minimal subset of tests in desktop static builds 2021-04-06 09:15:37 +01:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00