qt5base-lts/tests/auto/corelib/time
Edward Welbourne 6ee13db700 Correct string comparison in Android's IANA ID matching code
It used QString.compare() and assumed it was returning a bool true on
equality, when it actually returns an int that compares to 0 as the
given strings compare. So it should use compare() == 0.

This fixes several of QTimeZone's blacklisted tests on Android and a
crasher, which we dodged with a QSKIP. Added an id-comparison to a
test. Gave two local variables more informative names, made an early
return into a QSKIP so it explains itself.

Fixes: QTBUG-89905
Fixes: QTBUG-69122
Fixes: QTBUG-69132
Fixes: QTBUG-87435
Pick-to: 6.0 5.15
Change-Id: Icf18ed5a810143d6e65d36e34a70e82faac10b8e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
2021-01-18 15:55:15 +01:00
..
qcalendar Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdate Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdatetime Fix problems with offset-derived ids for QTimeZone 2021-01-18 15:55:05 +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 Correct string comparison in Android's IANA ID matching code 2021-01-18 15:55:15 +01:00
CMakeLists.txt Add unit tests for qdatetimeparser 2020-10-23 20:33:18 +02:00