qt5base-lts/tests/auto/corelib/time
Edward Welbourne e8c52d0e8c Fix transitionEachZone() failures on Android
In QTimeZonePrivate::dataForLocalTime(), mistrust the Android
backend's hasDaylightTime(), as it has a comment saying it only knows
about future transitions, not past. This caller of it really needs to
query "has ever had a transition", which this doesn't answer. Many
zones that have no plans for future transitions have had transitions
in the past; these were failing the transitionEachZone() test.

In the process, refine the test itself, making sure we catch some
quirk cases that shouldn't arise and making the debug message on
failure more informative (while eliding the zone name, as this is part
of the test name anyway, so added to the output by qDebug() itself).

Fixes: QTBUG-69131
Change-Id: I88a0528182c247acb8b6327b40516178e455bcc0
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-02-24 12:08:57 +01:00
..
qcalendar Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdate Make QDate's text round-trip test do actual comparisons 2021-02-11 11:46:04 +01:00
qdatetime Drop parsing of antique TextDate format 2021-02-15 13:44:48 +01:00
qdatetimeparser Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtime Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtimezone Fix transitionEachZone() failures on Android 2021-02-24 12:08:57 +01:00
CMakeLists.txt Add unit tests for qdatetimeparser 2020-10-23 20:33:18 +02:00