Apply expected failure to animated color changes.
authorToby Tomkins <toby.tomkins@nokia.com>
Wed, 4 Jan 2012 03:51:20 +0000 (13:51 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jan 2012 08:12:53 +0000 (09:12 +0100)
Color mixing fails on Ubuntu 11.10 x64 platform, this change adds
expected failures for this platform only.

Task-number: QTBUG-23385

Change-Id: Iaf272735f3cea460a1cb3840ebefd5bd27b5bbfa
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/qtquick2/qdeclarativeanimations/qdeclarativeanimations.pro
tests/auto/qtquick2/qdeclarativeanimations/tst_qdeclarativeanimations.cpp

index d15e86c..e13dbb9 100644 (file)
@@ -13,3 +13,6 @@ DEPLOYMENT += testDataFiles
 CONFIG += parallel_test
 
 QT += core-private gui-private v8-private declarative-private quick-private opengl-private testlib
+
+# QTBUG-23385 - color mixing tests failing on Ubuntu 11.10 x64
+linux-*:system(". /etc/lsb-release && [ $DISTRIB_CODENAME = oneiric ]"):DEFINES+=UBUNTU_ONEIRIC
index 075d29f..c078ed4 100644 (file)
@@ -185,6 +185,9 @@ void tst_qdeclarativeanimations::simpleColor()
     QVERIFY(animation.isPaused());
     animation.setCurrentTime(125);
     QVERIFY(animation.currentTime() == 125);
+#if defined(UBUNTU_ONEIRIC) && defined(__x86_64__)
+    QEXPECT_FAIL("", "Fails on this platform - QTBUG-23385", Abort);
+#endif
     QCOMPARE(rect.color(), QColor::fromRgbF(0.498039, 0, 0.498039, 1));
 
     rect.setColor(QColor("green"));
@@ -576,6 +579,9 @@ void tst_qdeclarativeanimations::mixedTypes()
 
         //rather inexact -- is there a better way?
         QVERIFY(myRect->x() > 100 && myRect->x() < 200);
+#if defined(UBUNTU_ONEIRIC) && defined(__x86_64__)
+        QEXPECT_FAIL("", "Fails on this platform - QTBUG-23385", Continue);
+#endif
         QVERIFY(myRect->color() != QColor("red") && myRect->color() != QColor("blue"));
     }
 }