From 565db9695dc62038e25cd5207731ac4ad59c4a05 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Thu, 5 Aug 2010 13:40:08 +0200 Subject: Fixed QPathCliper autotest, to skip a test when qreal != double --- tests/auto/qpathclipper/tst_qpathclipper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/qpathclipper/tst_qpathclipper.cpp b/tests/auto/qpathclipper/tst_qpathclipper.cpp index 4dc12cb..98c67d0 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 -- cgit v0.12