qt5base-lts/tests/auto
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
..
cmake Remove the qmake project files 2021-01-07 15:32:28 +01:00
concurrent Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
corelib Correct string comparison in Android's IANA ID matching code 2021-01-18 15:55:15 +01:00
dbus Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
gui rhi: Stop hardcoding the Vulkan backend's desired instance extensions 2021-01-18 13:21:15 +01:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Fix lancelot GL painting test for GLES 2021-01-18 07:42:31 +01:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
sql QODBC: Preserve the whole value when using HighPrecision 2021-01-14 07:02:43 +00:00
testlib QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
tools Hardcode a special case of using qOverload for slots without arguments 2021-01-15 17:39:46 +01:00
widgets Windows: Fix dialog moving up after closing/reshowing 2021-01-15 18:05:19 +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: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00