From 63a43cb424729990324f2c5e0c8a42aa368e23e2 Mon Sep 17 00:00:00 2001 From: Bernd Weimer Date: Wed, 23 Apr 2014 15:47:10 +0200 Subject: 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 Reviewed-by: Liang Qi --- tests/auto/quick/qquicktimeline/tst_qquicktimeline.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(qInf()) > 0) + QSKIP("Test is not applicable on this platform"); + QQuickTimeLine timeline; QQuickTimeLineValue value; -- cgit v1.2.3