diff options
author | Bernd Weimer <bweimer@blackberry.com> | 2014-04-23 15:47:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-25 09:02:21 +0200 |
commit | 63a43cb424729990324f2c5e0c8a42aa368e23e2 (patch) | |
tree | f4775cd5fc1f56b31cb1bc20159373d71359abc9 /tests/auto/quick/qquicktimeline | |
parent | e407ca970ad956cfdc0c8394942881fc82d5ebe9 (diff) |
Skip qquicktimeline auto test
On platforms where casting qreal value infinity to int yields a
positive value the test will fail. Test will be skipped on those
platforms.
Change-Id: I9f373a9598ffd72e857c96edce3df216070326c9
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'tests/auto/quick/qquicktimeline')
-rw-r--r-- | tests/auto/quick/qquicktimeline/tst_qquicktimeline.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktimeline/tst_qquicktimeline.cpp b/tests/auto/quick/qquicktimeline/tst_qquicktimeline.cpp index e9fbb5448c..9b62eb311c 100644 --- a/tests/auto/quick/qquicktimeline/tst_qquicktimeline.cpp +++ b/tests/auto/quick/qquicktimeline/tst_qquicktimeline.cpp @@ -53,6 +53,12 @@ private slots: void tst_QQuickTimeLine::overflow() { + // Test ensures that time value used in QQuickTimeLine::accel methods is always positive. + // On platforms where casting qreal value infinity to int yields a positive value this is + // always the case and the test would fail. Strictly speaking, the cast is undefined behavior. + if (static_cast<int>(qInf()) > 0) + QSKIP("Test is not applicable on this platform"); + QQuickTimeLine timeline; QQuickTimeLineValue value; |