summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 05:03:35 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-04 05:37:43 (GMT)
commit8e12d9e322ec7d8f7eece09b6f15cba640615f9e (patch)
tree661733d7a00a5b081ded6700827802e2a3925365
parenta7acd7e0a09d89647abb9ff91b1bcb55d1a7a849 (diff)
downloadQt-8e12d9e322ec7d8f7eece09b6f15cba640615f9e.zip
Qt-8e12d9e322ec7d8f7eece09b6f15cba640615f9e.tar.gz
Qt-8e12d9e322ec7d8f7eece09b6f15cba640615f9e.tar.bz2
Remove Q_ASSERT from qtesselator autotest
If the test data is incorrect, print a meaningful error message into the test output. Change-Id: I505a86b4411619d3c3be9541c96c082f92589ff7 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
-rw-r--r--tests/auto/qtessellator/oldtessellator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qtessellator/oldtessellator.cpp b/tests/auto/qtessellator/oldtessellator.cpp
index 78f117f..10b8710 100644
--- a/tests/auto/qtessellator/oldtessellator.cpp
+++ b/tests/auto/qtessellator/oldtessellator.cpp
@@ -218,7 +218,8 @@ void old_tesselate_polygon(QVector<XTrapezoid> *traps, const QPointF *pg, int pg
qreal ymax(INT_MIN/256);
//painter.begin(pg, pgSize);
- Q_ASSERT(pg[0] == pg[pgSize-1]);
+ if (pg[0] != pg[pgSize-1])
+ qWarning() << Q_FUNC_INFO << "Malformed polygon (first and last points must be identical)";
// generate edge table
// qDebug() << "POINTS:";
for (int x = 0; x < pgSize-1; ++x) {