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>
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;