qt6-bb10/tests/auto/corelib
Edward Welbourne 82ad4be4a2 Fix various uncommon cases in QTzTimeZonePrivate backend
Includes a fixup for 03fadc26e7, which
removed the check on empty transition list, needed when no data are
available.  Ensured that such a data-free zone would in fact be
noticed as invalid during init().

Fixed handling of times before the epoch (we still want to consult a
POSIX rule, if that's all that's available) while ensuring we (as
documented) ignore DST for such times.

Fixed handling of large times (milliseconds since epoch outside int
range) when looking up POSIX rules.  Gave QTimeZonePrivate a YearRange
enum (to be moved to QTimeZone once this merges up to dev) so as to
eliminate a magic number (and avoid adding another).  Moved
year-munging in POSIX rules after the one early return, which doesn't
need the year range.

Added test-cases for the distant past/future (just checking UTC's
offsets; SLES has a minimal version of the UTC data-file that triggers
the bugs fixed here for them).

Fixes: QTBUG-74666
Fixes: QTBUG-74550
Change-Id: Ief7b7e55c62cf11064700934f404b2fc283614e1
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-04-05 20:31:26 +00:00
..
animation Extend blacklisting of tst_qparallelanimationgroup tests to macOS 10.13 2018-09-24 21:13:30 +00:00
codecs Add tests for decoding too-short UTF-8 sequences 2018-09-25 22:14:07 +00:00
global Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
io Fix compilation of qCDebug("", ...) with QT_NO_DEBUG_OUTPUT 2019-03-14 17:15:53 +00:00
itemmodels Fix tree recursion in QAbstractItemModel::match() 2019-03-22 08:01:35 +00:00
kernel Fix blacklisting tst_QTimer::basic_chrono() 2019-02-21 05:18:00 +00:00
mimetypes QMimeType: Use default key as fallback for comment() property 2018-11-02 08:27:10 +00:00
plugin Fix build with -no-gui on macOS 2019-03-04 12:25:53 +00:00
serialization QPixmap: More safe failing if qApp is not a QGuiApplication 2019-03-22 08:06:43 +00:00
statemachine tst_QStateMachine: Don't use unconditional waits 2018-04-04 07:07:40 +00:00
thread Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
tools Fix various uncommon cases in QTzTimeZonePrivate backend 2019-04-05 20:31:26 +00:00
corelib.pro Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00