diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-09 05:53:13 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-09 08:45:18 (GMT) |
commit | c0c7e04c9248ce38278aceefeb527f29149cfb4e (patch) | |
tree | 2e1f182b34ffe2eace2287b62ea88ca78cee43bb | |
parent | 224050aae75fd5b1d6c57909d894a3eba7ac43fc (diff) | |
download | Qt-c0c7e04c9248ce38278aceefeb527f29149cfb4e.zip Qt-c0c7e04c9248ce38278aceefeb527f29149cfb4e.tar.gz Qt-c0c7e04c9248ce38278aceefeb527f29149cfb4e.tar.bz2 |
Remove Q_ASSERT from qtesselator autotest
Report a fatal error rather than failing silently in non-debug builds.
Change-Id: I625c5aa6f86a5764cd8f078baa074d6475a67736
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
-rw-r--r-- | tests/auto/qtessellator/oldtessellator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qtessellator/oldtessellator.cpp b/tests/auto/qtessellator/oldtessellator.cpp index e6a0451..bc24d7e 100644 --- a/tests/auto/qtessellator/oldtessellator.cpp +++ b/tests/auto/qtessellator/oldtessellator.cpp @@ -371,7 +371,8 @@ void old_tesselate_polygon(QVector<XTrapezoid> *traps, const QPointF *pg, int pg isects[i].edge = edge; } - Q_ASSERT(isects.size()%2 == 1); + if (isects.size()%2 != 1) + qFatal("%s: number of intersection points must be odd", Q_FUNC_INFO); // sort intersection points qSort(&isects[0], &isects[isects.size()-1], compareIntersections); |