qt5base-lts/tests/auto
Jason McDonald 1bbd9d8ee5 Make failures in QTimeLine autotest more stable.
QTimeLine appears to have very poor timing characteristics. Historical
CI logs show roughly one failure in every twenty-five test runs on
Windows, and less frequent failures on Mac and Linux.

The root of the problem seems to be that QTimeLine's currentTime
counter appears to run at a variable speed and the only guarantee is
that it is slower than wall time.  The frameChanged() test
function waited for double the expected duration of the timeline and
still found that the timeline had failed to finish in about one in every
thirty test runs.  The interpolation() test function also failed for the
same reason, though less often.

This commit makes the frameChanged test more strict so that the poor
timing will be demonstrated more often, waiting only 1.5 times the
duration instead of double the duration.  It also makes the test fail
gracefully so that this known issue won't disrupt CI when the test is
made significant in a later commit.

Task-number: QTBUG-24796
Change-Id: If469d43abb662e24445a9da619052eea9cf7c581
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-04-17 10:15:44 +02:00
..
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
corelib Make failures in QTimeLine autotest more stable. 2012-04-17 10:15:44 +02:00
dbus Remove comment about QVariantList and QVariantMap. 2012-03-28 03:18:56 +02:00
gui Add tst_QGuiApplication::modalWindow() 2012-04-11 16:18:07 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Add bug numbers to insignificant_test markers. 2012-04-16 21:49:36 +02:00
opengl Add bug numbers to insignificant_test markers. 2012-04-16 21:49:36 +02:00
other Update accessibility selections in QTextControl. 2012-04-14 13:40:03 +02:00
printsupport Add bug numbers to insignificant_test markers. 2012-04-16 21:49:36 +02:00
shared Added some convenience API for platform input contexts 2012-04-01 20:13:51 +02:00
sql QTBUG-1363: fix QSqlField.length() for ODBC 2012-04-13 21:26:07 +02:00
testlib Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
tools moc: Fix parsing of the empty preprocessor command 2012-04-16 00:54:19 +02:00
widgets Fix tst_QDialog::deleteInExec() crash on Mac OS X 2012-04-17 03:28:29 +02:00
xml Bump some Qt 5 to-do's to Qt 6. 2012-04-10 22:47:37 +02:00
auto.pro Disable some tests and examples when --no-widgets is specified 2012-03-19 20:16:04 +01:00
network-settings.h Don't require exact IMAP server version in autotests 2012-04-03 12:45:46 +02:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00