qt5base-lts/tests/auto
Dimitrios Apostolou 45501f6ca6 Ensure list has elements before getting them
Before a recent fix it would happen occasionally that
lastNormalizedPositions.at(0) would segfault because the list was
empty. The cause of the flakiness was fixed, but make the test more
resilient anyway by checking first the list is correctly populated.

Furthermore on some platforms this check fails:

  qAbs(leftWidget.lastNormalizedPositions.at(1).x() - 0.8) < 0.05

So instead of QVERIFY use QCOMPARE_LT to print the values when it fails.

Task-number: QTBUG-104268
Change-Id: Id5430eb53c133cf5d23647cfd9749f01f266efce
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2022-07-22 19:19:59 +02:00
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake Fix memory leaks 2022-06-15 23:58:16 +02:00
concurrent QtConcurrent: prevent conversion of ReduceOption to initial value 2022-05-20 17:11:15 +02:00
corelib QCursor: add missing QT_DEPRECATED_VERSION_X_6_0 for deprecated methods 2022-07-21 19:59:07 +02:00
dbus Fix QDBusInterface crashing with empty path on construction 2022-06-27 14:02:47 +02:00
gui Ensure list has elements before getting them 2022-07-22 19:19:59 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network tst_qnetworkreply: replace server.pem/key pair 2022-07-15 22:42:43 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other CMake: Rename test to tst_qobjectrace 2022-07-20 13:15:59 +02:00
printsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
testlib Use debug stream in QTest::toString's default fallback if possible 2022-07-13 15:14:35 +02:00
tools moc: Allow writing properties through bindables 2022-07-08 09:38:27 +02:00
wasm Port promise tests to qtwasmtestlib 2022-07-06 17:56:57 +02:00
widgets QAction: add QT_DEPRECATED_VERSION_6_0 to deprecated methods 2022-07-21 23:12:15 +02:00
xml QDomDocument: add a missing full-stop to a warning message 2022-07-12 13:24:57 +02:00
CMakeLists.txt Only configure one test for wasm 2022-05-12 18:55:04 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00