summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpathclipper
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-08-05 13:40:08 +0200
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-02 15:31:00 +0100
commit565db9695dc62038e25cd5207731ac4ad59c4a05 (patch)
treecf1433849f0bf7c3d8a164e871d8882d0c2fc7c2 /tests/auto/qpathclipper
parent4e063a7c79caf77cff9748ef4e799dbbc1c1346f (diff)
Fixed QPathCliper autotest, to skip a test when qreal != double
Diffstat (limited to 'tests/auto/qpathclipper')
-rw-r--r--tests/auto/qpathclipper/tst_qpathclipper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qpathclipper/tst_qpathclipper.cpp b/tests/auto/qpathclipper/tst_qpathclipper.cpp
index 4dc12cb403..98c67d017e 100644
--- a/tests/auto/qpathclipper/tst_qpathclipper.cpp
+++ b/tests/auto/qpathclipper/tst_qpathclipper.cpp
@@ -1300,6 +1300,9 @@ void tst_QPathClipper::task251909()
void tst_QPathClipper::qtbug3778()
{
+ if (sizeof(double) != sizeof(qreal)) {
+ QSKIP("This test only works for qreal=double, otherwise ends in rounding errors", SkipAll);
+ }
QPainterPath path1;
path1.moveTo(200, 3.22409e-5);
// e-5 and higher leads to a bug