qt5base-lts/tests/auto/corelib
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
..
animation Fix deadlock in QPropertyAnimation 2012-03-07 12:48:49 +01:00
codecs fix QUtf8 codec to disallow codes in range [U+fdd0..U+fdef] 2012-04-11 19:14:43 +02:00
global Work around what apparently is a GCC 4.6.0 bug 2012-03-25 15:09:52 +02:00
io Marked tst_QProcess as insignificant on Windows. 2012-04-17 07:36:35 +02:00
itemmodels Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
json Don't crash when comparing values containing empty arrays/objects 2012-04-11 16:09:06 +02:00
kernel moc: fix compilation of signals returning pointers. 2012-04-13 08:33:34 +02:00
mimetypes Make comment() work in the C locale too. 2012-03-22 13:29:50 +01:00
plugin Fix a crash in QFactoryLoader 2012-03-29 13:58:13 +02:00
statemachine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
thread Fixed qthreadstorage unittest to work from install directory 2012-03-26 03:42:10 +02:00
tools Make failures in QTimeLine autotest more stable. 2012-04-17 10:15:44 +02:00
xml Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00