diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-08-05 11:40:08 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:31:00 (GMT) |
commit | 565db9695dc62038e25cd5207731ac4ad59c4a05 (patch) | |
tree | cf1433849f0bf7c3d8a164e871d8882d0c2fc7c2 /tests/auto/qpathclipper | |
parent | 4e063a7c79caf77cff9748ef4e799dbbc1c1346f (diff) | |
download | Qt-565db9695dc62038e25cd5207731ac4ad59c4a05.zip Qt-565db9695dc62038e25cd5207731ac4ad59c4a05.tar.gz Qt-565db9695dc62038e25cd5207731ac4ad59c4a05.tar.bz2 |
Fixed QPathCliper autotest, to skip a test when qreal != double
Diffstat (limited to 'tests/auto/qpathclipper')
-rw-r--r-- | tests/auto/qpathclipper/tst_qpathclipper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |